mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: bump up wait leader timeout for slow CIs
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
88fe8de99b
commit
3d56045da0
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user