client/integration: try to fix tests

This commit is contained in:
nolouch
2018-09-17 15:43:06 +08:00
parent c15fb607f6
commit 6ea54195a6
5 changed files with 11 additions and 15 deletions

View File

@ -310,7 +310,7 @@ func TestDropReadUnderNetworkPartition(t *testing.T) {
t.Fatalf("expected %v, got %v", rpctypes.ErrLeaderChanged, err)
}
ctx, cancel = context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel = context.WithTimeout(context.TODO(), 10*time.Second)
_, err = kvc.Get(ctx, "a")
cancel()
if err != nil {