integration: add constant RequestWaitTimeout.

This commit is contained in:
Sam Batschelet
2017-12-09 13:16:27 -05:00
committed by Gyuho Lee
parent 1ae0c0b47d
commit a609b1eb47
8 changed files with 20 additions and 18 deletions

View File

@ -121,7 +121,7 @@ func testDialSetEndpoints(t *testing.T, setBefore bool) {
if !setBefore {
cli.SetEndpoints(eps[toKill%3], eps[(toKill+1)%3])
}
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), intergration.RequestWaitTimeout)
if _, err = cli.Get(ctx, "foo", clientv3.WithSerializable()); err != nil {
t.Fatal(err)
}