Skip to content

Commit

Permalink
Gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed Jan 18, 2016
1 parent 8cf4a81 commit c5adfbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ func TestRaft_RemoveLeader_NoShutdown(t *testing.T) {

// Remove the leader
var removeFuture Future
for i := byte(0) ; i < 100; i++ {
for i := byte(0); i < 100; i++ {
leader.Apply([]byte{i}, 0)
if i == 80 {
removeFuture = leader.RemovePeer(leader.localAddr)
Expand All @@ -916,7 +916,7 @@ func TestRaft_RemoveLeader_NoShutdown(t *testing.T) {
if err := removeFuture.Error(); err != nil {
t.Fatalf("RemovePeer failed with error %v", err)
}

// Wait a while
time.Sleep(20 * time.Millisecond)

Expand All @@ -940,7 +940,7 @@ func TestRaft_RemoveLeader_NoShutdown(t *testing.T) {
if peers, _ := leader.peerStore.Peers(); len(peers) != 1 {
t.Fatalf("leader should have no peers")
}

// Other nodes should have the same state
c.EnsureSame(t)
}
Expand Down

0 comments on commit c5adfbb

Please sign in to comment.