From 819a1f7dc0b10285a168bdd2f652dc47fc21caae Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 12 Jan 2016 10:38:51 +0100 Subject: [PATCH] Fix tests with custom RTP modifiers that fail sometimes --- tester/call_tester.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tester/call_tester.c b/tester/call_tester.c index f87c1d290..cae7ccaa6 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -5264,7 +5264,7 @@ static void custom_rtp_modifier(bool_t pauseResumeTest, bool_t recordTest) { ms_message("Pauline sent %i RTP packets and received %i (through our modifier)", (int)data_pauline->packetSentCount, (int)data_pauline->packetReceivedCount); // There will be a few RTP packets sent on marie's side before the call is ended at pauline's request, so we need the threshold BC_ASSERT_TRUE(data_marie->packetSentCount - data_pauline->packetReceivedCount < 50); - BC_ASSERT_TRUE(data_marie->packetReceivedCount == data_pauline->packetSentCount); + BC_ASSERT_TRUE(data_pauline->packetSentCount - data_marie->packetReceivedCount < 50); // At this point, we know each packet that has been processed in the send callback of our RTP modifier also go through the recv callback of the remote. // Now we want to ensure that all sent RTP packets actually go through our RTP transport modifier and thus no packet leave without being processed (by any operation we might want to do on it)