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 <crodbro@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27107}
This commit is contained in:
Sebastian Jansson
2019-03-13 15:50:29 +01:00
committed by Commit Bot
parent 5ad789ceff
commit 5ce38fff17

View File

@ -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);
}