mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Revert the WithContext changes to vault tests (#14947)
This commit is contained in:
committed by
GitHub
parent
48b43e9213
commit
e7b5b2a48d
@@ -2,7 +2,6 @@ package command
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
@@ -60,7 +59,7 @@ func TestOperatorUnsealCommand_Run(t *testing.T) {
|
||||
}
|
||||
|
||||
// Enter an unseal key
|
||||
if _, err := client.Sys().UnsealWithContext(context.Background(), keys[0]); err != nil {
|
||||
if _, err := client.Sys().Unseal(keys[0]); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -107,7 +106,7 @@ func TestOperatorUnsealCommand_Run(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
status, err := client.Sys().SealStatusWithContext(context.Background())
|
||||
status, err := client.Sys().SealStatus()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user