Skip to content

Commit

Permalink
build: Modify NewVault constructor to set context in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keloran committed Jun 30, 2024
1 parent e5cb4d6 commit 97d825b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 97d825b

Please sign in to comment.