Merge pull request #7955 from gyuho/timeout

integration: bump up 'TestV3LeaseRequireLeader' timeout to 5-sec
This commit is contained in:
Gyu-Ho Lee 2017-05-18 17:11:23 -07:00 committed by GitHub
commit b82ef007f5

View File

@ -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:
}
}