From 8df1fb7fcf930f5667e1d7ef66e2237e72d2a7db Mon Sep 17 00:00:00 2001 From: Nick Kubala Date: Tue, 26 Mar 2019 11:01:43 -0700 Subject: [PATCH] lint --- integration/rpc_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/integration/rpc_test.go b/integration/rpc_test.go index 0764927d4a6..9af9821d7e4 100644 --- a/integration/rpc_test.go +++ b/integration/rpc_test.go @@ -88,7 +88,7 @@ func TestEventLogRPC(t *testing.T) { if attempts < connectionRetries { attempts++ t.Logf("waiting for connection...") - time.Sleep(3 * time.Second) + time.Sleep(waitTime) continue } t.Fatalf("error retrieving event log: %v\n", err) @@ -231,7 +231,6 @@ func TestGetStateRPC(t *testing.T) { defer ctxCancel() // try a few times and wait around until we see the build is complete, or fail. - attempts = 0 success := false var grpcState *proto.State for i := 0; i < stateRetries; i++ { @@ -240,7 +239,7 @@ func TestGetStateRPC(t *testing.T) { success = true break } - time.Sleep(1 * time.Second) + time.Sleep(waitTime) } if !success { // max attempts exceeded, log errors @@ -263,7 +262,7 @@ func retrieveRPCState(ctx context.Context, t *testing.T, client proto.SkaffoldSe if attempts < connectionRetries { attempts++ t.Logf("waiting for connection...") - time.Sleep(3 * time.Second) + time.Sleep(waitTime) continue } t.Fatalf("error retrieving state: %v\n", err) @@ -307,7 +306,7 @@ func TestGetStateHTTP(t *testing.T) { success = true break } - time.Sleep(1 * time.Second) + time.Sleep(waitTime) } if !success { // max attempts exceeded, log errors