X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/28d1ee2cda01bccdd2424f8fdbb4a924de37eaa3..7c34643f154f543e1eef7c9855fb8d657146c646:/tests/unit/aofrw.tcl?ds=sidebyside diff --git a/tests/unit/aofrw.tcl b/tests/unit/aofrw.tcl index e341d77b..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 cat [srv 0 stdout] | tail -n1] - } {*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} {