]> 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)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Fri, 9 Jun 2023 23:28:15 +0000 (23:28 +0000)
commit297e2cdcfd58590bb706eae0e96bde0518568208
tree589bc9b619dc43d274dcbefa19207af637c2715f
parent6b4f49c0df000ebeea1b2a1fa951c2a6a8b4a9ea
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