Skip to content

Commit

Permalink
db: make checkpoint test even more deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
bananabrick committed Oct 3, 2023
1 parent c7c47d6 commit 62251e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions checkpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func TestCheckpoint(t *testing.T) {
DisableAutomaticCompactions: true,
}
opts.private.disableTableStats = true
opts.private.testingAlwaysWaitForCleanup = true

datadriven.RunTest(t, "testdata/checkpoint", func(t *testing.T, td *datadriven.TestData) string {
switch td.Cmd {
Expand Down
4 changes: 4 additions & 0 deletions testdata/checkpoint
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ sync: checkpoints/checkpoint5/temporary.000020.dbtmp
close: checkpoints/checkpoint5/temporary.000020.dbtmp
rename: checkpoints/checkpoint5/temporary.000020.dbtmp -> checkpoints/checkpoint5/OPTIONS-000020
sync: checkpoints/checkpoint5
remove: checkpoints/checkpoint5/000008.log
remove: checkpoints/checkpoint5/OPTIONS-000003

print-backing checkpoints/checkpoint5
----
Expand Down Expand Up @@ -792,6 +794,8 @@ sync: checkpoints/checkpoint6/temporary.000020.dbtmp
close: checkpoints/checkpoint6/temporary.000020.dbtmp
rename: checkpoints/checkpoint6/temporary.000020.dbtmp -> checkpoints/checkpoint6/OPTIONS-000020
sync: checkpoints/checkpoint6
remove: checkpoints/checkpoint6/000008.log
remove: checkpoints/checkpoint6/OPTIONS-000003

print-backing checkpoints/checkpoint6
----
Expand Down

0 comments on commit 62251e6

Please sign in to comment.