From bc56274967298d0357f57ea0df26280beacd43bd Mon Sep 17 00:00:00 2001
From: Erik Auerswald <auerswal@unix-ag.uni-kl.de>
Date: Sun, 6 Feb 2022 16:13:37 +0100
Subject: [PATCH 5/5] adjust localhost tests of -Q and -Q -F options

Before the tests would send Echo Requests in a spacing that got too
close to the reporting interval:

   0 ms
 450 ms + delay
 900 ms + delay <--- first stats output before or after this
1350 ms + delay
1800 ms + delay <--- second stats output after this
2250 ms + delay

The tests now use a different period that should result in more
reliable stats output:

   0 ms
 550 ms + delay <--- first stats output after this
1100 ms + delay
1650 ms + delay <--- second stats output after this
2200 ms + delay

That hopefully addresses the CI test failure on macOS.
---
 ci/test-08-options-n-q.pl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/ci/test-08-options-n-q.pl b/ci/test-08-options-n-q.pl
index a435654..6cfa207 100755
--- a/ci/test-08-options-n-q.pl
+++ b/ci/test-08-options-n-q.pl
@@ -59,27 +59,27 @@ $cmd->stderr_like(qr{127\.0\.0\.1 : xmt/rcv/%loss = 3/3/0%, min/avg/max = \d\.\d
 
 # fping -Q
 {
-my $cmd = Test::Command->new(cmd => "fping -Q 1 -p 450 -c 6 127.0.0.1");
+my $cmd = Test::Command->new(cmd => "fping -Q 1 -p 550 -c 5 127.0.0.1");
 $cmd->exit_is_num(0);
 $cmd->stdout_is_eq("");
 $cmd->stderr_like(qr{\[\d+:\d+:\d+\]
-127\.0\.0\.1 : xmt/rcv/%loss = 3/3/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
+127\.0\.0\.1 : xmt/rcv/%loss = 2/2/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
 \[\d+:\d+:\d+\]
 127\.0\.0\.1 : xmt/rcv/%loss = 2/2/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
-127\.0\.0\.1 : xmt/rcv/%loss = 6/6/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
+127\.0\.0\.1 : xmt/rcv/%loss = 5/5/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
 });
 }
 
 # fping -Q -F
 {
-my $cmd = Test::Command->new(cmd => "fping -Q 1 -F -p 450 -c 6 127.0.0.1");
+my $cmd = Test::Command->new(cmd => "fping -Q 1 -F -p 550 -c 5 127.0.0.1");
 $cmd->exit_is_num(0);
 $cmd->stdout_is_eq("");
 $cmd->stderr_like(qr{\[\d+:\d+:\d+\]
-127\.0\.0\.1 : xmt/rcv/%loss = 3/3/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
+127\.0\.0\.1 : xmt/rcv/%loss = 2/2/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
 \[\d+:\d+:\d+\]
+127\.0\.0\.1 : xmt/rcv/%loss = 4/4/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
 127\.0\.0\.1 : xmt/rcv/%loss = 5/5/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
-127\.0\.0\.1 : xmt/rcv/%loss = 6/6/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+
 });
 }
 
-- 
2.25.1

