fix(tests): replace sleep with prof_timeout in shows_history_message test for improved reliability
Some checks failed
CI Code / Linux (arch) (pull_request) Successful in 9m50s
CI Code / Check coding style (pull_request) Successful in 37s
CI Code / Check spelling (pull_request) Successful in 18s
CI Code / Linux (debian) (pull_request) Failing after 11m46s
CI Code / Linux (ubuntu) (pull_request) Successful in 2h38m37s

This commit is contained in:
2025-12-22 11:57:11 +03:00
parent b02582b19e
commit 3307e0eac2

View File

@@ -146,9 +146,10 @@ shows_history_message(void **state)
"<x xmlns='jabber:x:delay' stamp='20151219T23:55:25'/>"
"</message>"
);
sleep(2);
prof_timeout(10);
assert_true(prof_output_regex("testoccupant:.*an old message"));
prof_timeout_reset();
}
void