Revert the WithContext changes to vault tests (#14947)

This commit is contained in:
Anton Averchenkov
2022-04-07 15:12:58 -04:00
committed by GitHub
parent 48b43e9213
commit e7b5b2a48d
104 changed files with 1093 additions and 1167 deletions

View File

@@ -1,7 +1,6 @@
package command
import (
"context"
"encoding/json"
"strconv"
"strings"
@@ -107,7 +106,7 @@ func TestTokenRenewCommand_Run(t *testing.T) {
t.Errorf("expected %d to be %d", code, exp)
}
secret, err := client.Auth().Token().LookupWithContext(context.Background(), token)
secret, err := client.Auth().Token().Lookup(token)
if err != nil {
t.Fatal(err)
}
@@ -142,7 +141,7 @@ func TestTokenRenewCommand_Run(t *testing.T) {
t.Errorf("expected %d to be %d", code, exp)
}
secret, err := client.Auth().Token().LookupWithContext(context.Background(), token)
secret, err := client.Auth().Token().Lookup(token)
if err != nil {
t.Fatal(err)
}
@@ -181,7 +180,7 @@ func TestTokenRenewCommand_Run(t *testing.T) {
}
client.SetToken(oldToken)
secret, err := client.Auth().Token().LookupWithContext(context.Background(), token)
secret, err := client.Auth().Token().Lookup(token)
if err != nil {
t.Fatal(err)
}