Skip to content

Commit

Permalink
db: fix TestCleaner flake
Browse files Browse the repository at this point in the history
TestCleaner flakes because of table stats are retrieved
asynchronously. Disable table stats altogether.

Fixes #2560
  • Loading branch information
RaduBerinde committed Jun 6, 2023
1 parent 5f9fad0 commit d96868f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cleaner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ func TestCleaner(t *testing.T) {
return "open <dir> [archive] [readonly]"
}
}
// Asynchronous table stats retrieval makes the output flaky.
opts.private.disableTableStats = true
d, err := Open(dir, opts)
if err != nil {
return err.Error()
Expand Down

0 comments on commit d96868f

Please sign in to comment.