From 3307e0eac2c736b061f74220953ff4d7a970dc77 Mon Sep 17 00:00:00 2001 From: "jabber.developer2" Date: Mon, 22 Dec 2025 11:57:11 +0300 Subject: [PATCH] fix(tests): replace sleep with prof_timeout in shows_history_message test for improved reliability --- tests/functionaltests/test_muc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functionaltests/test_muc.c b/tests/functionaltests/test_muc.c index f95aec77..a48692fe 100644 --- a/tests/functionaltests/test_muc.c +++ b/tests/functionaltests/test_muc.c @@ -146,9 +146,10 @@ shows_history_message(void **state) "" "" ); - sleep(2); + prof_timeout(10); assert_true(prof_output_regex("testoccupant:.*an old message")); + prof_timeout_reset(); } void