test tweaks

This commit is contained in:
Mahmood Ali 2020-07-23 13:25:25 -04:00
parent 5f6162ba46
commit 5d86f84c5a
1 changed files with 2 additions and 1 deletions

View File

@ -1015,6 +1015,7 @@ func TestVaultClient_LookupToken_RateLimit(t *testing.T) {
// Spin up many requests. These should block
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
cancels := 0
numRequests := 20
@ -1028,7 +1029,7 @@ func TestVaultClient_LookupToken_RateLimit(t *testing.T) {
cancels += 1
return
}
t.Fatalf("self lookup failed: %v", err)
t.Errorf("self lookup failed: %v", err)
return
}