From 97d825bc3cf060eb06dae755df54e987d78c9072 Mon Sep 17 00:00:00 2001 From: Keloran Date: Sun, 30 Jun 2024 22:27:36 +0100 Subject: [PATCH] build: Modify NewVault constructor to set context in tests. --- vault_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault_test.go b/vault_test.go index 1f89d14..cc7b9f1 100644 --- a/vault_test.go +++ b/vault_test.go @@ -132,7 +132,7 @@ func TestGetSecret(t *testing.T) { address, err := vaultContainer.HttpHostAddress(ctx) assert.Nil(t, err) - v := NewVault(address, "MyToKeN") + v := NewVault(address, "MyToKeN").SetContext(ctx) err = v.GetRemoteSecrets("kv/data/secret/test1") assert.Nil(t, err)