From f459aa6cfb89a8bb4d8e4198aa97885843108f2b Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Thu, 23 Jul 2020 13:25:25 -0400 Subject: [PATCH] test tweaks --- nomad/vault_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nomad/vault_test.go b/nomad/vault_test.go index 3f94d79446e..07ee66a6d43 100644 --- a/nomad/vault_test.go +++ b/nomad/vault_test.go @@ -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 }