From: Richard Mudgett Date: Thu, 16 Jun 2011 18:12:32 +0000 (+0000) Subject: The test_event unit test is occasionally failing. X-Git-Tag: 1.8.5-rc1~11^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf2d1b01be96ba5f61df5ff361f3d877c5bf6a81;p=thirdparty%2Fasterisk.git The test_event unit test is occasionally failing. Wait for the special posted event to process before adding a new subscription. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@323990 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/tests/test_event.c b/tests/test_event.c index bc84b18571..e6f345133b 100644 --- a/tests/test_event.c +++ b/tests/test_event.c @@ -721,6 +721,9 @@ AST_TEST_DEFINE(event_sub_test) goto return_cleanup; } + ast_test_status_update(test, "Sleeping a few seconds to allow event propagation...\n"); + sleep(3); + /* * Subscription TEST_SUBS_CUSTOM_ANY: * - allocate normally