From b5a191bfe76af4f06eb8abe7d49ebffa9a9ccbdf Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Thu, 19 Sep 2013 11:14:35 +0000 Subject: [PATCH] Fixes a flake in network down tests. And reduces the flakiness in NACK tests. TESTS=trybots R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2258004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4788 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../test/auto_test/source/vie_autotest_rtp_rtcp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/video_engine/test/auto_test/source/vie_autotest_rtp_rtcp.cc b/webrtc/video_engine/test/auto_test/source/vie_autotest_rtp_rtcp.cc index dbd3ac6d40..91c961dc06 100644 --- a/webrtc/video_engine/test/auto_test/source/vie_autotest_rtp_rtcp.cc +++ b/webrtc/video_engine/test/auto_test/source/vie_autotest_rtp_rtcp.cc @@ -385,7 +385,7 @@ void ViEAutoTest::ViERtpRtcpStandardTest() EXPECT_EQ(0, ViE.rtp_rtcp->SetNACKStatus(tbChannel.videoChannel, true)); EXPECT_EQ(0, ViE.base->StartSend(tbChannel.videoChannel)); - AutoTestSleep(kAutoTestSleepTimeMs); + AutoTestSleep(4 * kAutoTestSleepTimeMs); EXPECT_EQ(0, ViE.rtp_rtcp->GetBandwidthUsage( tbChannel.videoChannel, sentTotalBitrate, sentVideoBitrate, @@ -509,9 +509,9 @@ void ViEAutoTest::ViERtpRtcpStandardTest() if (FLAGS_include_timing_dependent_tests) { EXPECT_GT(bytes_received_after, bytes_received_before); } - bytes_received_before = bytes_received_after; // Simulate lost reception and verify that nothing is sent during that time. ViE.network->SetNetworkTransmissionState(tbChannel.videoChannel, false); + bytes_received_before = bytes_received_after; ViETest::Log("Network Down...\n"); AutoTestSleep(kAutoTestSleepTimeMs); EXPECT_EQ(0, ViE.rtp_rtcp->GetRTPStatistics(tbChannel.videoChannel,