Index: webrtc/p2p/base/turnport_unittest.cc |
diff --git a/webrtc/p2p/base/turnport_unittest.cc b/webrtc/p2p/base/turnport_unittest.cc |
index ef678b5d73c54d9ff5838269fc91e4f0e53a3fb2..e82f10f51d30c70cbaaa6f635d5811464af22c20 100644 |
--- a/webrtc/p2p/base/turnport_unittest.cc |
+++ b/webrtc/p2p/base/turnport_unittest.cc |
@@ -1019,12 +1019,12 @@ TEST_F(TurnPortTest, TestChannelBindGetErrorResponse) { |
EXPECT_TRUE_SIMULATED_WAIT(CheckConnectionFailedAndPruned(conn1), |
kSimulatedRtt, fake_clock_); |
- // Verify that no packet can be sent after a bind request error. |
+ // Verify that packets are allowed to be sent after a bind request error. |
+ // They'll just use a send indication instead. |
conn2->SignalReadPacket.connect(static_cast<TurnPortTest*>(this), |
&TurnPortTest::OnUdpReadPacket); |
conn1->Send(data.data(), data.length(), options); |
- SIMULATED_WAIT(!udp_packets_.empty(), kSimulatedRtt, fake_clock_); |
- EXPECT_TRUE(udp_packets_.empty()); |
+ EXPECT_TRUE_SIMULATED_WAIT(!udp_packets_.empty(), kSimulatedRtt, fake_clock_); |
} |
// Do a TURN allocation, establish a UDP connection, and send some data. |