Skip to content

Commit

Permalink
fix Test_CheckpointChaos1 (#21164)
Browse files Browse the repository at this point in the history
fix Test_CheckpointChaos1

Approved by: @LeftHandCold
  • Loading branch information
XuPeng-SH authored Jan 9, 2025
1 parent 06afc9d commit 016cc97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/vm/engine/tae/db/test/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7894,8 +7894,8 @@ func Test_CheckpointChaos1(t *testing.T) {
err = tae.DB.ForceCheckpoint(ctx, now)
assert.Error(t, err)

entries := tae.BGCheckpointRunner.GetAllIncrementalCheckpoints()
assert.Equal(t, 0, len(entries))
maxEntry := tae.BGCheckpointRunner.MaxIncrementalCheckpoint()
assert.Nilf(t, maxEntry, maxEntry.String())

ok, err := rmFn()
require.True(t, ok)
Expand All @@ -7905,7 +7905,7 @@ func Test_CheckpointChaos1(t *testing.T) {
err = tae.DB.ForceCheckpoint(ctx, now)
assert.NoError(t, err)

entries = tae.BGCheckpointRunner.GetAllIncrementalCheckpoints()
entries := tae.BGCheckpointRunner.GetAllIncrementalCheckpoints()
assert.Equal(t, 1, len(entries))
assert.True(t, entries[0].IsFinished())

Expand Down

0 comments on commit 016cc97

Please sign in to comment.