gfe-relnote: (n/a) Increase the time in some quic http end_to_end_tests to reduce flakiness. Test only, not protected. This is an attempt to deflake test BadPacketHeaderFlags. PiperOrigin-RevId: 293192767 Change-Id: Ib08811aba65c3e2bb0aa7c3bb1cfa775cd97c2a1
diff --git a/quic/core/http/end_to_end_test.cc b/quic/core/http/end_to_end_test.cc index 873a893..7621288 100644 --- a/quic/core/http/end_to_end_test.cc +++ b/quic/core/http/end_to_end_test.cc
@@ -2757,7 +2757,7 @@ client_->client()->network_helper()->GetLatestClientAddress().host(), server_address_, nullptr); // Give the server time to process the packet. - QuicSleep(QuicTime::Delta::FromMilliseconds(100)); + QuicSleep(QuicTime::Delta::FromSeconds(1)); // Pause the server so we can access the server's internals without races. server_thread_->Pause(); QuicDispatcher* dispatcher = @@ -2808,7 +2808,7 @@ client_->client()->network_helper()->GetLatestClientAddress().host(), server_address_, nullptr); // Give the server time to process the packet. - QuicSleep(QuicTime::Delta::FromMilliseconds(100)); + QuicSleep(QuicTime::Delta::FromSeconds(1)); // Pause the server so we can access the server's internals without races. server_thread_->Pause(); QuicDispatcher* dispatcher = @@ -2844,7 +2844,7 @@ client_->client()->network_helper()->GetLatestClientAddress().host(), server_address_, nullptr); // Give the server time to process the packet. - QuicSleep(QuicTime::Delta::FromMilliseconds(100)); + QuicSleep(QuicTime::Delta::FromSeconds(1)); // This error is sent to the connection's OnError (which ignores it), so the // dispatcher doesn't see it. // Pause the server so we can access the server's internals without races.