diff --git a/pc/data_channel_integrationtest.cc b/pc/data_channel_integrationtest.cc index 9afda05090..95661d73eb 100644 --- a/pc/data_channel_integrationtest.cc +++ b/pc/data_channel_integrationtest.cc @@ -295,8 +295,10 @@ TEST_P(DataChannelIntegrationTest, EndToEndCallWithSctpDataChannelFullBuffer) { DataChannelInterface::DataState::kClosing, DataChannelInterface::DataState::kClosed}; + // Debug data channels are very slow, use a long timeout for those slow, + // heavily parallelized runs. EXPECT_EQ_WAIT(DataChannelInterface::DataState::kClosed, - caller()->data_observer()->state(), kDefaultTimeout); + caller()->data_observer()->state(), kLongTimeout); EXPECT_THAT(caller()->data_observer()->states(), ::testing::ElementsAreArray(expected_states)); diff --git a/pc/test/integration_test_helpers.h b/pc/test/integration_test_helpers.h index 7b3f11905d..e1de1b3a27 100644 --- a/pc/test/integration_test_helpers.h +++ b/pc/test/integration_test_helpers.h @@ -141,6 +141,7 @@ using ::testing::Values; using RTCConfiguration = PeerConnectionInterface::RTCConfiguration; static const int kDefaultTimeout = 10000; +static const int kLongTimeout = 60000; static const int kMaxWaitForStatsMs = 3000; static const int kMaxWaitForActivationMs = 5000; static const int kMaxWaitForFramesMs = 10000;