From 5ce38fff17b332c7bf06a0d582bb233704d2fb21 Mon Sep 17 00:00:00 2001 From: Sebastian Jansson Date: Wed, 13 Mar 2019 15:50:29 +0100 Subject: [PATCH] Making UpdatesTargetRateBasedOnLinkCapacity more robust. This CL adds enough simulated time to recover the built up delay. This makes the test less sensitive to small timing changes. This prepares for further changes in Scenario test framework. Bug: webrtc:10365 Change-Id: Iddbe6a57e31f17f590004e29221f907321cbb3d6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127567 Reviewed-by: Christoffer Rodbro Commit-Queue: Sebastian Jansson Cr-Commit-Position: refs/heads/master@{#27107} --- .../goog_cc/goog_cc_network_control_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/congestion_controller/goog_cc/goog_cc_network_control_unittest.cc b/modules/congestion_controller/goog_cc/goog_cc_network_control_unittest.cc index c41ae8fdee..4a8c759b88 100644 --- a/modules/congestion_controller/goog_cc/goog_cc_network_control_unittest.cc +++ b/modules/congestion_controller/goog_cc/goog_cc_network_control_unittest.cc @@ -75,7 +75,7 @@ void UpdatesTargetRateBasedOnLinkCapacity(std::string test_name = "") { [](NetworkNodeConfig* c) { c->simulation.delay = TimeDelta::ms(200); }); truth->PrintRow(); - s.RunFor(TimeDelta::seconds(30)); + s.RunFor(TimeDelta::seconds(50)); truth->PrintRow(); EXPECT_NEAR(client->target_rate_kbps(), 90, 20); }