From 92997d06ea3bd6b24414db0ca51987f48b1a87b8 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 2 May 2012 11:40:46 +0200 Subject: [PATCH] Test "Turning off AOF kills the background writing child if any" is now more reliable. --- tests/unit/aofrw.tcl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/unit/aofrw.tcl b/tests/unit/aofrw.tcl index 4716d08e..8b09d199 100644 --- a/tests/unit/aofrw.tcl +++ b/tests/unit/aofrw.tcl @@ -7,8 +7,12 @@ start_server {tags {"aofrw"}} { r bgrewriteaof r config set appendonly no r exec - set result [exec tail -n1 < [srv 0 stdout] ] - } {*Killing*AOF*child*} + wait_for_condition 50 100 { + [string match {*Killing*AOF*child*} [exec tail -n5 < [srv 0 stdout]]] + } else { + fail "Can't find 'Killing AOF child' into recent logs" + } + } foreach d {string int} { foreach e {ziplist linkedlist} {