Skip to content

Commit

Permalink
debug: debug
Browse files Browse the repository at this point in the history
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed May 5, 2017
1 parent 823f9b3 commit 3b6e852
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions integration/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,23 @@ func TestAddMemberAfterClusterFullRotation(t *testing.T) {

// Ensure we can remove a member then add a new one back immediately.
func TestIssue2681(t *testing.T) {
now := time.Now()
fmt.Println("TestIssue2681 started!")
defer testutil.AfterTest(t)
c := NewCluster(t, 5)
c.Launch(t)
defer c.Terminate(t)

fmt.Println("TestIssue2681 1", time.Since(now))
c.RemoveMember(t, uint64(c.Members[4].s.ID()))
c.waitLeader(t, c.Members)

fmt.Println("TestIssue2681 2", time.Since(now))
c.AddMember(t)
c.waitLeader(t, c.Members)
clusterMustProgress(t, c.Members)

fmt.Println("TestIssue2681 3", time.Since(now))
}

// Ensure we can remove a member after a snapshot then add a new one back.
Expand Down

0 comments on commit 3b6e852

Please sign in to comment.