Skip to content

Commit

Permalink
Merge pull request cockroachdb#21071 from nvanbenschoten/nvanbenschte…
Browse files Browse the repository at this point in the history
…n/fix21025

storage: revert change to TestInitRaftGroupOnRequest, deflake test
  • Loading branch information
nvanbenschoten authored Dec 27, 2017
2 parents 9f8b2f8 + 45591bb commit c1d602d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/storage/client_raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3754,9 +3754,13 @@ func TestInitRaftGroupOnRequest(t *testing.T) {
t.Fatal("replica should not be nil for RHS range")
}

// TODO(spencer): Raft messages seem to turn up
// occasionally on restart, which initialize the replica, so
// this is not a test failure. Not sure how to work around this
// problem.
// Verify the raft group isn't initialized yet.
if repl.IsRaftGroupInitialized() {
t.Fatal("expected raft group to be uninitialized")
log.Errorf(context.TODO(), "expected raft group to be uninitialized")
}

// Send an increment and verify that initializes the Raft group.
Expand Down

0 comments on commit c1d602d

Please sign in to comment.