Skip to content

Commit

Permalink
tests: fix TestRaftClusterMultipleRestart (#8809)
Browse files Browse the repository at this point in the history
close #8801

Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
rleungx and ti-chi-bot[bot] authored Nov 14, 2024
1 parent ac133d8 commit 2f9bf48
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 2f9bf48

Please sign in to comment.