Ver código fonte

integration: bump up 'TestV3LeaseRequireLeader' timeout to 5-sec

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Gyu-Ho Lee 8 anos atrás
pai
commit
29bbcdd110
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      integration/v3_lease_test.go

+ 2 - 2
integration/v3_lease_test.go

@@ -528,8 +528,8 @@ func TestV3LeaseRequireLeader(t *testing.T) {
 		}
 	}()
 	select {
-	case <-time.After(time.Duration(5*electionTicks) * tickDuration):
-		t.Fatalf("did not receive leader loss error")
+	case <-time.After(5 * time.Second):
+		t.Fatal("did not receive leader loss error (in 5-sec)")
 	case <-donec:
 	}
 }