From 0c4ef4b6ee58ab400dce473a9b20a93307255cc1 Mon Sep 17 00:00:00 2001 From: sebthom Date: Sat, 6 Jul 2024 14:15:06 +0200 Subject: [PATCH] update tests --- tests/fast-apt-mirror.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fast-apt-mirror.bats b/tests/fast-apt-mirror.bats index a4e3467..c409463 100644 --- a/tests/fast-apt-mirror.bats +++ b/tests/fast-apt-mirror.bats @@ -88,7 +88,7 @@ function get_dist_name() { } @test "find: Find mirror if executed with arguments" { - assert_exitcode $RC_OK find --sample-size 10 --healthchecks 8 --ignore-sync-state --speedtests 2 + assert_exitcode $RC_OK find --sample-size 10 --healthchecks 8 --ignore-sync-state --speedtests 2 --country DE assert_regex "$output" 'Randomly selecting 8 mirrors...done' assert_regex "$output" 'Speed testing 2 of the available' assert_regex "$output" '(sample download size: 10KB)' @@ -101,7 +101,7 @@ function get_dist_name() { debian|kali|ubuntu) ;; *) skip ;; esac - assert_exitcode $RC_OK find -vvv --apply --exclude-current + assert_exitcode $RC_OK find -vvv --apply --exclude-current --country DE >&3 echo "|-> ${lines[-2]}" assert_regex "$output" 'Creating backup /etc/apt/(sources\.list|apt-mirrors\.txt).*.save' assert_regex "$output" "Changing mirror from \[.*\] to \[.*\]"