Skip to content

Commit

Permalink
clientv3/integration: try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nolouch committed Sep 14, 2018
1 parent f3f6427 commit fd5ef74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions clientv3/integration/leasing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()).
Expand Down
2 changes: 2 additions & 0 deletions integration/v3_lease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit fd5ef74

Please sign in to comment.