Follow-up CL to deflake RTCStatsIntegrationTest.GetStatsFromCallee

This is a follow-up to
https://webrtc-review.googlesource.com/c/src/+/295724.

Test is still failing sometimes. Add additional constraint.

Bug: webrtc:14952
Change-Id: Iddc2733459733c0f3e40aea303752f055cb865c5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/295665
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Auto-Submit: Johannes Kron <kron@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39441}
This commit is contained in:
Johannes Kron 2023-03-01 15:19:47 +00:00 committed by WebRTC LUCI CQ
parent c1dc4fd0ef
commit 0925fe36cf

View file

@ -1173,6 +1173,7 @@ TEST_F(RTCStatsIntegrationTest, GetStatsFromCallee) {
auto inbound_stats = auto inbound_stats =
report->GetStatsOfType<RTCRemoteInboundRtpStreamStats>(); report->GetStatsOfType<RTCRemoteInboundRtpStreamStats>();
return !inbound_stats.empty() && return !inbound_stats.empty() &&
inbound_stats.front()->round_trip_time.is_defined() &&
inbound_stats.front()->round_trip_time_measurements.is_defined(); inbound_stats.front()->round_trip_time_measurements.is_defined();
}; };
EXPECT_TRUE_WAIT(GetStatsReportAndReturnTrueIfRttIsDefined(), kMaxWaitMs); EXPECT_TRUE_WAIT(GetStatsReportAndReturnTrueIfRttIsDefined(), kMaxWaitMs);