summaryrefslogtreecommitdiff
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 15:11:02 -0600
commite4a566918a4bcf01269f321f0979a7bf4c5c33d6 (patch)
tree86b497bdf1b7f9453723f5df4cd0def186b769a4
parent3a1c4885be4eeb3f6c631b0cfb4709442c9464ae (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
-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 7ac52917a..17e2d05f0 100644
--- a/tests/test_stasis_endpoints.c
+++ b/tests/test_stasis_endpoints.c
@@ -185,9 +185,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);