mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3/integration: try to fix tests
This commit is contained in:
parent
f3f6427586
commit
fd5ef74b80
@ -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()).
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user