]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: make 120-selectoptions more reliable
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 13 Jan 2021 15:25:08 +0000 (16:25 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 14 Jan 2021 17:17:48 +0000 (18:17 +0100)
Remove packet interval checks with long delays as the tests are much
more likely to end when the client is waiting for a response. Increase
the base delay to make selection with two sources more reliable.

Reported-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
test/simulation/120-selectoptions

index a6b1e14c455426652f96878a9c2c426dca1ddcf3..b4b67045851952c1fd3f59e941fe312ccdb827e1 100755 (executable)
@@ -16,7 +16,6 @@ server 192.168.123.3 trust"
 run_test || test_fail
 check_chronyd_exit || test_fail
 check_source_selection || test_fail
-check_packet_interval || test_fail
 check_sync || test_fail
 
 client_server_conf="
@@ -27,7 +26,6 @@ server 192.168.123.3 prefer"
 run_test || test_fail
 check_chronyd_exit || test_fail
 check_source_selection || test_fail
-check_packet_interval || test_fail
 # This check is expected to fail
 check_sync && test_fail
 
@@ -36,10 +34,9 @@ base_delay=1.1
 run_test || test_fail
 check_chronyd_exit || test_fail
 check_source_selection || test_fail
-check_packet_interval || test_fail
 check_sync || test_fail
 
-base_delay=$default_base_delay
+base_delay=1e-3
 falsetickers=1
 
 client_server_conf="