]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
tests/test_stasis_endpoints: Remove expected duplicate events 74/1874/2
authorMatt Jordan <mjordan@digium.com>
Fri, 25 Dec 2015 02:26:46 +0000 (20:26 -0600)
committerMatt Jordan <mjordan@digium.com>
Mon, 28 Dec 2015 19:46:24 +0000 (13:46 -0600)
The cache_clear test was written to expect duplicate Stasis messages
sent from the technology endpoint to the all caching topic. This patch
fixes the test to no longer expect these duplicate messages.

ASTERISK-25137

Change-Id: I58075d70d6cdf42e792e0fb63ba624720bfce981

tests/test_stasis_endpoints.c

index 848d86b1c500f2bcca3c2b48406b0496ab35199d..6e9727588991b8fb708ed69e271c3d93dd2a44d3 100644 (file)
@@ -186,9 +186,10 @@ AST_TEST_DEFINE(cache_clear)
 
        /* Note: there's a few messages between the creation and the clear.
         * Wait for all of them... */
-       message_index = stasis_message_sink_wait_for(sink, message_index + 4,
+       message_index = stasis_message_sink_wait_for(sink, message_index + 2,
                cache_update, __func__, STASIS_SINK_DEFAULT_WAIT);
        ast_test_validate(test, 0 <= message_index);
+
        /* Now we should have a cache removal entry */
        msg = sink->messages[message_index];
        type = stasis_message_type(msg);