Skip to content

Commit

Permalink
output more information
Browse files Browse the repository at this point in the history
  • Loading branch information
Grotax committed Dec 31, 2024
1 parent d45ee0b commit e4a00a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/updater/update.bats
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ teardown() {

UpdateTime2=$(http --ignore-stdin -b -a ${user}:${APP_PASSWORD} GET ${BASE_URLv1}/feeds | jq '.feeds | .[0].nextUpdateTime')

# Check if UpdateTime2 is within the expected range and print it if not
if [[ $UpdateTime2 -lt $expected_time_min || $UpdateTime2 -gt $expected_time_max ]]; then
echo "UpdateTime2 is out of range: $UpdateTime2"
fi

# Assert that UpdateTime2 is within the expected range
run bash -c "[[ $UpdateTime2 -ge $expected_time_min && $UpdateTime2 -le $expected_time_max ]]"
assert_success
Expand Down

0 comments on commit e4a00a9

Please sign in to comment.