trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject [trafficserver] 02/02: Fix a testcase for LossDetector
Date Tue, 09 Jan 2018 08:10:12 GMT
This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 11c27699e97f8d0ad806f7be190772e4e698dd1c
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Tue Jan 9 17:06:48 2018 +0900

    Fix a testcase for LossDetector
---
 iocore/net/quic/test/test_QUICLossDetector.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/iocore/net/quic/test/test_QUICLossDetector.cc b/iocore/net/quic/test/test_QUICLossDetector.cc
index 17f6029..5cfdfc0 100644
--- a/iocore/net/quic/test/test_QUICLossDetector.cc
+++ b/iocore/net/quic/test/test_QUICLossDetector.cc
@@ -126,7 +126,7 @@ TEST_CASE("QUICLossDetector_Loss", "[quic]")
     detector.on_packet_sent(std::move(packet8));
     detector.on_packet_sent(std::move(packet9));
 
-    ink_hrtime_sleep(HRTIME_MSECONDS(10000));
+    ink_hrtime_sleep(HRTIME_MSECONDS(1000));
 
     // Receive an ACK for (1) (4) (5) (7) (8) (9)
     afc->update(pn1, true);
@@ -135,8 +135,10 @@ TEST_CASE("QUICLossDetector_Loss", "[quic]")
     afc->update(pn7, true);
     afc->update(pn8, true);
     afc->update(pn9, true);
+    ink_hrtime_sleep(HRTIME_MSECONDS(1000));
     frame = afc->create();
     detector.handle_frame(frame);
+    ink_hrtime_sleep(HRTIME_MSECONDS(5000));
 
     CHECK(cc->lost_packets.size() == 3);
 

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>.

Mime
View raw message