]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
The test_event unit test is occasionally failing.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 16 Jun 2011 18:12:32 +0000 (18:12 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 16 Jun 2011 18:12:32 +0000 (18:12 +0000)
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

index bc84b18571b00c1fa7026b242d63f9bc7afaf8d1..e6f345133bf9a7672d84d27fbc0e41698636e523 100644 (file)
@@ -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