Skip to content

Commit

Permalink
Re-enable and fix remove-node test (#5499)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerwilliams authored Dec 11, 2023
1 parent 025d8fa commit 30e62ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion enterprise/server/raft/store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ func TestAddNodeToCluster(t *testing.T) {
})
require.NoError(t, err)

stores := []*TestingStore{s1, s2, s3, s4}
waitForRangeLease(t, stores, 2)

rd := s1.GetRange(1)
_, err = s1.AddReplica(ctx, &rfpb.AddReplicaRequest{
Range: rd,
Expand All @@ -241,7 +244,6 @@ func TestAddNodeToCluster(t *testing.T) {
}

func TestRemoveNodeFromCluster(t *testing.T) {
t.Skip()
sf := newStoreFactory(t)
s1, nh1 := sf.NewStore(t)
s2, nh2 := sf.NewStore(t)
Expand All @@ -257,6 +259,9 @@ func TestRemoveNodeFromCluster(t *testing.T) {
})
require.NoError(t, err)

stores := []*TestingStore{s1, s2, s3, s4}
waitForRangeLease(t, stores, 2)

rd := s1.GetRange(1)
_, err = s1.RemoveReplica(ctx, &rfpb.RemoveReplicaRequest{
Range: rd,
Expand Down

0 comments on commit 30e62ed

Please sign in to comment.