From 8a364233141c21f1614ac50f8f87ce0cd93eeffd Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Sat, 24 Dec 2022 14:30:03 -0800 Subject: [PATCH] remote_logging_server: sleep at the end It seems ending the test right after we create the mutex can cause the client not to catch it, sometimes. So let's sleep for a few seconds after creating it to make sure it does. Signed-off-by: Adam Williamson --- tests/server_remote_logging_server.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/server_remote_logging_server.pm b/tests/server_remote_logging_server.pm index 92388fa9..d820f52d 100644 --- a/tests/server_remote_logging_server.pm +++ b/tests/server_remote_logging_server.pm @@ -32,6 +32,8 @@ sub run { assert_script_run 'grep "XXX RSYSLOG TEST MESSAGE" /var/log/messages'; # tell child test we were successful mutex_create("rsyslog_message_received"); + # give it a few seconds to make sure the client gets it + sleep 10; } sub test_flags {