Relax some test expectations in QUIC BBR & BBR2 test.
This is to make these tests pass with cl/489058406.
PiperOrigin-RevId: 495370841
diff --git a/quiche/quic/core/congestion_control/bbr2_simulator_test.cc b/quiche/quic/core/congestion_control/bbr2_simulator_test.cc
index e3757fe..ce9e44c 100644
--- a/quiche/quic/core/congestion_control/bbr2_simulator_test.cc
+++ b/quiche/quic/core/congestion_control/bbr2_simulator_test.cc
@@ -365,7 +365,7 @@
QuicBandwidth max_bw(QuicBandwidth::Zero());
bool simulator_result = simulator_.RunUntilOrTimeout(
[this, &max_bw, &max_bw_round]() {
- if (max_bw < sender_->ExportDebugState().bandwidth_hi) {
+ if (max_bw * 1.001 < sender_->ExportDebugState().bandwidth_hi) {
max_bw = sender_->ExportDebugState().bandwidth_hi;
max_bw_round = sender_->ExportDebugState().round_trip_count;
}
@@ -457,7 +457,7 @@
QuicBandwidth max_bw(QuicBandwidth::Zero());
bool simulator_result = simulator_.RunUntilOrTimeout(
[this, &max_bw, &max_bw_round]() {
- if (max_bw < sender_->ExportDebugState().bandwidth_hi) {
+ if (max_bw * 1.001 < sender_->ExportDebugState().bandwidth_hi) {
max_bw = sender_->ExportDebugState().bandwidth_hi;
max_bw_round = sender_->ExportDebugState().round_trip_count;
}
diff --git a/quiche/quic/core/congestion_control/bbr_sender_test.cc b/quiche/quic/core/congestion_control/bbr_sender_test.cc
index 3a04ccd..fdd401b 100644
--- a/quiche/quic/core/congestion_control/bbr_sender_test.cc
+++ b/quiche/quic/core/congestion_control/bbr_sender_test.cc
@@ -868,7 +868,7 @@
QuicBandwidth max_bw(QuicBandwidth::Zero());
bool simulator_result = simulator_.RunUntilOrTimeout(
[this, &max_bw, &max_bw_round]() {
- if (max_bw < sender_->ExportDebugState().max_bandwidth) {
+ if (max_bw * 1.001 < sender_->ExportDebugState().max_bandwidth) {
max_bw = sender_->ExportDebugState().max_bandwidth;
max_bw_round = sender_->ExportDebugState().round_trip_count;
}
@@ -895,7 +895,7 @@
QuicBandwidth max_bw(QuicBandwidth::Zero());
bool simulator_result = simulator_.RunUntilOrTimeout(
[this, &max_bw, &max_bw_round]() {
- if (max_bw < sender_->ExportDebugState().max_bandwidth) {
+ if (max_bw * 1.001 < sender_->ExportDebugState().max_bandwidth) {
max_bw = sender_->ExportDebugState().max_bandwidth;
max_bw_round = sender_->ExportDebugState().round_trip_count;
}