From 68e514f08b8f3e8ab7023fa89cdd92cc57f54d0d Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 20 Jun 2018 13:01:20 +0300 Subject: [PATCH] Fix test_event If the logged line is found, it is not an error, if it is not, it is. --- server/core/test/test_event.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core/test/test_event.cc b/server/core/test/test_event.cc index f869b3f6f..bc4d719d3 100644 --- a/server/core/test/test_event.cc +++ b/server/core/test/test_event.cc @@ -483,7 +483,7 @@ int test_logging() // Short sleep to increase the likelyhood that the logged message ends // ends up where we expect it to be. - sleep(1); + sleep(2); bool found = false; @@ -502,7 +502,7 @@ int test_logging() } } - return found ? 1 : 0; + return found ? 0 : 1; } }