Skip to content

Commit

Permalink
chore: reduce retry interval in raft tests + fix control bind conflict (
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmakine authored Jan 6, 2025
1 parent 7adc16d commit 44fda1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/raft/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestJoiningExistingCluster(t *testing.T) {
shard1 := raft.AddShard(ctx, builder1, 1, &IntStateMachine{})
cluster1 := builder1.Build(ctx)

builder2 := testBuilder(t, members[:2], 2, members[1].String(), controlBind)
builder2 := testBuilder(t, members[:2], 2, members[1].String(), nil)
shard2 := raft.AddShard(ctx, builder2, 1, &IntStateMachine{})
cluster2 := builder2.Build(ctx)

Expand Down Expand Up @@ -178,7 +178,7 @@ func testBuilder(t *testing.T, addresses []*net.TCPAddr, id uint64, address stri
ChangesInterval: 5 * time.Millisecond,
ChangesTimeout: 1 * time.Second,
Retry: retry.RetryConfig{
Min: 10 * time.Millisecond,
Min: 50 * time.Millisecond,
Max: 1 * time.Second,
Factor: 2,
Jitter: true,
Expand Down

0 comments on commit 44fda1d

Please sign in to comment.