mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	Fix some more test failures and recursive locking (#6549)
This commit is contained in:
		| @@ -4,6 +4,7 @@ import ( | ||||
| 	"io" | ||||
| 	"strings" | ||||
| 	"testing" | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/hashicorp/vault/api" | ||||
| 	"github.com/mitchellh/cli" | ||||
| @@ -401,6 +402,9 @@ func TestKVGetCommand(t *testing.T) { | ||||
| 					t.Fatal(err) | ||||
| 				} | ||||
|  | ||||
| 				// Give time for the upgrade code to run/finish | ||||
| 				time.Sleep(time.Second) | ||||
|  | ||||
| 				if _, err := client.Logical().Write("secret/read/foo", map[string]interface{}{ | ||||
| 					"foo": "bar", | ||||
| 				}); err != nil { | ||||
| @@ -496,6 +500,9 @@ func TestKVMetadataGetCommand(t *testing.T) { | ||||
| 					t.Fatal(err) | ||||
| 				} | ||||
|  | ||||
| 				// Give time for the upgrade code to run/finish | ||||
| 				time.Sleep(time.Second) | ||||
|  | ||||
| 				if _, err := client.Logical().Write("kv/data/foo", map[string]interface{}{ | ||||
| 					"data": map[string]interface{}{ | ||||
| 						"foo": "bar", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jeff Mitchell
					Jeff Mitchell