summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-12-24 20:26:46 -0600
committerMatt Jordan <mjordan@digium.com>2015-12-28 13:46:24 -0600
commit96b32e0321bf37322c85bc57721903dc4a3cc968 (patch)
treeafa3328e276b6efa41025fddf5e750848e2d3bc9 /tests
parentb4b4a95225a6170c4ddd0e567218d4033d9600f8 (diff)
tests/test_stasis_endpoints: Remove expected duplicate events
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
Diffstat (limited to 'tests')
-rw-r--r--tests/test_stasis_endpoints.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_stasis_endpoints.c b/tests/test_stasis_endpoints.c
index 848d86b1c..6e9727588 100644
--- a/tests/test_stasis_endpoints.c
+++ b/tests/test_stasis_endpoints.c
@@ -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);