Fix flake in SamplesStatsCounterTest.FullSimpleTest
Bug: webrtc:10138 Change-Id: Ide99513bda6098fffe373467125bfdacd85cee54 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/150112 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28946}
This commit is contained in:
parent
bf45add049
commit
b6b4deee49
@ -61,7 +61,7 @@ TEST(SamplesStatsCounterTest, FullSimpleTest) {
|
||||
EXPECT_TRUE(!stats.IsEmpty());
|
||||
EXPECT_DOUBLE_EQ(stats.GetMin(), 1.0);
|
||||
EXPECT_DOUBLE_EQ(stats.GetMax(), 100.0);
|
||||
EXPECT_DOUBLE_EQ(stats.GetAverage(), 50.5);
|
||||
EXPECT_NEAR(stats.GetAverage(), 50.5, 1e-6);
|
||||
for (int i = 1; i <= 100; i++) {
|
||||
double p = i / 100.0;
|
||||
EXPECT_GE(stats.GetPercentile(p), i);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user