Relax expectation in OveruseFrameDetectorTest2.ConvergesSlowly Bug: webrtc:12846 Change-Id: I9238374c18c3cdbe79265e93cb23522d0454bb6e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/221822 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34262}
diff --git a/video/adaptation/overuse_frame_detector_unittest.cc b/video/adaptation/overuse_frame_detector_unittest.cc index d95ce0f..37ad974 100644 --- a/video/adaptation/overuse_frame_detector_unittest.cc +++ b/video/adaptation/overuse_frame_detector_unittest.cc
@@ -824,8 +824,6 @@ EXPECT_EQ(InitialUsage(), UsagePercent()); } -// TODO(crbug.com/webrtc/12846): investigate why the test fails on MAC bots. -#if !defined(WEBRTC_MAC) TEST_F(OveruseFrameDetectorTest2, ConvergesSlowly) { overuse_detector_->SetOptions(options_); InsertAndSendFramesWithInterval(1, kFrameIntervalUs, kWidth, kHeight, @@ -840,14 +838,13 @@ // Should have started to approach correct load of 15%, but not very far. EXPECT_LT(UsagePercent(), InitialUsage()); - EXPECT_GT(UsagePercent(), (InitialUsage() * 3 + 15) / 4); + EXPECT_GT(UsagePercent(), (InitialUsage() * 3 + 8) / 4); // Run for roughly 10s more, should now be closer. InsertAndSendFramesWithInterval(300, kFrameIntervalUs, kWidth, kHeight, kProcessTimeUs); EXPECT_NEAR(UsagePercent(), 20, 5); } -#endif TEST_F(OveruseFrameDetectorTest2, InitialProcessingUsage) { overuse_detector_->SetOptions(options_);