]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Get rid of uses of stasis_topic_wait()
authorMark Michelson <mmichelson@digium.com>
Thu, 3 Oct 2013 14:56:30 +0000 (14:56 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 3 Oct 2013 14:56:30 +0000 (14:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400362 65c4cc65-6c06-0410-ace0-fbb531ad65f3

tests/test_cel.c

index 2ae5abb306121990bcc5c685ff27a9415185ec0b..0aa8b601c920977413980e35972e60cb9c06f5c4 100644 (file)
@@ -122,8 +122,6 @@ static void do_sleep(void)
 
 #define BRIDGE_EXIT_EVENT(channel, bridge) do { \
        RAII_VAR(struct ast_str *, peer_str, NULL, ast_free); \
-       stasis_topic_wait(ast_channel_topic_all()); \
-       stasis_topic_wait(ast_bridge_topic_all()); \
        peer_str = test_cel_generate_peer_str(channel, bridge); \
        ast_test_validate(test, peer_str != NULL); \
        BRIDGE_EXIT_EVENT_PEER(channel, bridge, ast_str_buffer(peer_str)); \
@@ -139,8 +137,6 @@ static void do_sleep(void)
 #define BRIDGE_EXIT_SNAPSHOT(channel, bridge) do { \
        RAII_VAR(struct ast_json *, extra, NULL, ast_json_unref); \
        RAII_VAR(struct ast_str *, peer_str, NULL, ast_free); \
-       stasis_topic_wait(ast_channel_topic_all()); \
-       stasis_topic_wait(ast_bridge_topic_all()); \
        peer_str = test_cel_generate_peer_str_snapshot(channel, bridge); \
        ast_test_validate(test, peer_str != NULL); \
        extra = ast_json_pack("{s: s}", "bridge_id", bridge->uniqueid); \
@@ -157,8 +153,6 @@ static void do_sleep(void)
 
 #define BRIDGE_ENTER_EVENT(channel, bridge) do { \
        RAII_VAR(struct ast_str *, peer_str, NULL, ast_free); \
-       stasis_topic_wait(ast_channel_topic_all()); \
-       stasis_topic_wait(ast_bridge_topic_all()); \
        peer_str = test_cel_generate_peer_str(channel, bridge); \
        ast_test_validate(test, peer_str != NULL); \
        BRIDGE_ENTER_EVENT_PEER(channel, bridge, ast_str_buffer(peer_str)); \