Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jul 6, 2024
1 parent 948aeb8 commit 0c4ef4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/fast-apt-mirror.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand All @@ -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 \[.*\]"
Expand Down

0 comments on commit 0c4ef4b

Please sign in to comment.