From 123cc1a1bca41233e711fd9b6a54d6901e72c6ce Mon Sep 17 00:00:00 2001 From: yoav-steinberg Date: Wed, 6 Oct 2021 11:50:47 +0300 Subject: [PATCH] Test fails when flushdb triggers a bgsave (#9535) Flush db and *then* wait for the bgsave to complete. --- tests/unit/other.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/other.tcl b/tests/unit/other.tcl index c39e1e9d3..420f0d820 100644 --- a/tests/unit/other.tcl +++ b/tests/unit/other.tcl @@ -39,8 +39,8 @@ start_server {tags {"other"}} { } test {BGSAVE} { - waitForBgsave r r flushdb + waitForBgsave r r save r set x 10 r bgsave