summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-07-10 16:42:43 +0200
committerantirez <antirez@gmail.com>2014-07-10 16:42:43 +0200
commit3bf72d0d5fb032e7d4b6beaaae8b70b2cb23fa6b (patch)
treea9a86a73b32c813287bf0bfa0df697a584c6e16e
parenta94aa39c86706e3f1eca5a3ff8b647cc0fc9a53c (diff)
downloadredis-3bf72d0d5fb032e7d4b6beaaae8b70b2cb23fa6b.tar.gz
Test: more reliable AOF rewrite test under write load.
-rw-r--r--tests/unit/aofrw.tcl10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/aofrw.tcl b/tests/unit/aofrw.tcl
index 1c61ea560..a2d74168f 100644
--- a/tests/unit/aofrw.tcl
+++ b/tests/unit/aofrw.tcl
@@ -39,6 +39,16 @@ start_server {tags {"aofrw"}} {
stop_write_load $load_handle3
stop_write_load $load_handle4
+ # Make sure that we remain the only connected client.
+ # This step is needed to make sure there are no pending writes
+ # that will be processed between the two "debug digest" calls.
+ wait_for_condition 50 100 {
+ [llength [split [string trim [r client list]] "\n"]] == 1
+ } else {
+ puts [r client list]
+ fail "Clients generating loads are not disconnecting"
+ }
+
# Get the data set digest
set d1 [r debug digest]