Skip to content

Commit

Permalink
fix TestRaftClusterMultipleRestart
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Nov 13, 2024
1 parent 9415fdc commit c8ca4ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/server/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,9 @@ func TestRaftClusterMultipleRestart(t *testing.T) {
re := require.New(t)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
tc, err := tests.NewTestCluster(ctx, 1)
tc, err := tests.NewTestCluster(ctx, 1, func(conf *config.Config, _ string) {
conf.LeaderLease = 300
})
defer tc.Destroy()
re.NoError(err)

Expand Down

0 comments on commit c8ca4ec

Please sign in to comment.