clientv3/integration: try to fix tests

This commit is contained in:
nolouch 2018-09-14 17:57:56 +08:00
parent f3f6427586
commit fd5ef74b80
2 changed files with 3 additions and 0 deletions

View File

@ -1644,6 +1644,7 @@ func TestLeasingReconnectTxn(t *testing.T) {
clus.Members[0].DropConnections()
time.Sleep(time.Millisecond)
}
time.Sleep(10 * time.Millisecond)
}()
_, lerr := lkv.Txn(context.TODO()).

View File

@ -539,6 +539,8 @@ func TestV3LeaseSwitch(t *testing.T) {
// election timeout after it loses its quorum. And the new leader extends the TTL of
// the lease to at least TTL + election timeout.
func TestV3LeaseFailover(t *testing.T) {
defer testutil.AfterTest(t)
clus := NewClusterV3(t, &ClusterConfig{Size: 3})
defer clus.Terminate(t)