integration: bump up wait leader timeout for slow CIs

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2017-12-20 04:23:03 -08:00
parent 88fe8de99b
commit 3d56045da0

View File

@ -387,7 +387,7 @@ func (c *cluster) waitLeader(t *testing.T, membs []*member) int {
// ensure leader is up via linearizable get
for {
ctx, cancel := context.WithTimeout(context.Background(), 10*tickDuration)
ctx, cancel := context.WithTimeout(context.Background(), 10*tickDuration+time.Second)
_, err := kapi.Get(ctx, "0", &client.GetOptions{Quorum: true})
cancel()
if err == nil || strings.Contains(err.Error(), "Key not found") {