From cf2d1b01be96ba5f61df5ff361f3d877c5bf6a81 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Thu, 16 Jun 2011 18:12:32 +0000 Subject: [PATCH] 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 --- tests/test_event.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.2