]> 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>
Thu, 6 Jul 2023 15:09:41 +0000 (09:09 -0600)
commita5c4f3e5675465d5f267ae64f894be75718e1b89
tree5f3b59669cfbb5c3a2a712f5ec367de5c4afe841
parentfcaa1ba181b7c75eacceca6ca29bf3283ab0a2fa
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