From d96868fd481e4bb95b962c94a801b82d8828946c Mon Sep 17 00:00:00 2001 From: Radu Berinde Date: Tue, 6 Jun 2023 12:22:27 -0700 Subject: [PATCH] db: fix TestCleaner flake TestCleaner flakes because of table stats are retrieved asynchronously. Disable table stats altogether. Fixes #2560 --- cleaner_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cleaner_test.go b/cleaner_test.go index 4889225bf4..762745156a 100644 --- a/cleaner_test.go +++ b/cleaner_test.go @@ -107,6 +107,8 @@ func TestCleaner(t *testing.T) { return "open [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()