Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Dec 3, 2024
1 parent b46fbe3 commit ab7cc56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/server/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1834,9 +1834,12 @@ func TestPatrolRegionConfigChange(t *testing.T) {
re := require.New(t)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

tc, err := tests.NewTestCluster(ctx, 1)
defer tc.Destroy()
re.NoError(err)
fname := testutil.InitTempFileLogger("debug")
defer os.RemoveAll(fname)
err = tc.RunInitialServers()
re.NoError(err)
tc.WaitLeader()
Expand All @@ -1856,8 +1859,6 @@ func TestPatrolRegionConfigChange(t *testing.T) {
endKey := []byte(fmt.Sprintf("%d", i*2))
tests.MustPutRegion(re, tc, uint64(i), uint64(i%3+1), startKey, endKey)
}
fname := testutil.InitTempFileLogger("debug")
defer os.RemoveAll(fname)
checkLog(re, fname, "coordinator starts patrol regions")

// test change patrol region interval
Expand Down

0 comments on commit ab7cc56

Please sign in to comment.