]> git.ipfire.org Git - thirdparty/asterisk.git/commit
test_stasis_endpoints.c: Make channel_messages more stable
authorGeorge Joseph <gjoseph@sangoma.com>
Fri, 9 Jun 2023 16:41:13 +0000 (10:41 -0600)
committerGeorge Joseph <gjoseph@sangoma.com>
Fri, 9 Jun 2023 23:28:03 +0000 (23:28 +0000)
commit833543df0d23b2621174d08228db30eb9b41e279
tree9f23ababf39191de55fea90d0fe44348aa4a6dc6
parentacb18c1fc49c35a7bbe61d89ff75f26fdf8e4b56
test_stasis_endpoints.c: Make channel_messages more stable

The channel_messages test was assuming that stasis would return
messages in a specific order.  This is an incorrect assumption as
message ordering was never guaranteed.  This was causing the test
to fail occasionally.  We now test all the messages for the
required message types instead of testing one by one.

Resolves: #158
tests/test_stasis_endpoints.c