From fb554079367441941dacf0777064c5537532c76c Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Mon, 8 Mar 2021 21:22:08 +0200 Subject: [PATCH] Fix test false positive due to a race condition. (#8616) --- tests/unit/other.tcl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/other.tcl b/tests/unit/other.tcl index 16ed092be..b35172aba 100644 --- a/tests/unit/other.tcl +++ b/tests/unit/other.tcl @@ -309,6 +309,12 @@ start_server {tags {"other"}} { populate 4096 "" 1 r bgsave + wait_for_condition 10 100 { + [s rdb_bgsave_in_progress] eq 1 + } else { + fail "bgsave did not start in time" + } + r mset k1 v1 k2 v2 # Hash table should not rehash assert_no_match "*table size: 8192*" [r debug HTSTATS 9]