Don't call EXPECT_TRUE_WAIT recursively.
In case this triggers unexpected error handling on ASAN. Bug: webrtc:15018 Change-Id: Iec8154081f3831ee60902bb94900d79a98ea01fa Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/300480 Reviewed-by: Jeremy Leconte <jleconte@google.com> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39779}
This commit is contained in:
parent
b51c0ce271
commit
d0dfe95bf0
@ -986,7 +986,10 @@ class PeerConnectionSimulcastWithMediaFlowTests
|
||||
rtc::scoped_refptr<PeerConnectionTestWrapper> pc_wrapper) {
|
||||
auto callback = rtc::make_ref_counted<MockRTCStatsCollectorCallback>();
|
||||
pc_wrapper->pc()->GetStats(callback.get());
|
||||
EXPECT_TRUE_WAIT(callback->called(), kDefaultTimeout.ms());
|
||||
while (!callback->called()) {
|
||||
rtc::Thread::Current()->ProcessMessages(0);
|
||||
rtc::Thread::Current()->SleepMs(1);
|
||||
}
|
||||
return callback->report();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user