Skip to content

Commit

Permalink
adjust test
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Brahmer <[email protected]>
  • Loading branch information
Grotax committed Jan 2, 2025
1 parent a314440 commit 993d739
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/updater/update.bats
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ teardown() {
# Get the current time
current_time=$(date +%s)

# Calculate the expected time range (+1 hour with some tolerance)
expected_time_min=$((current_time + 3600 - 60)) # 1 hour - 1 minute tolerance
expected_time_max=$((current_time + 3600 + 60)) # 1 hour + 1 minute tolerance
# Calculate the expected time range (+1 day with some tolerance)
expected_time_min=$((current_time + 86400 - 60)) # 1 hour - 1 minute tolerance
expected_time_max=$((current_time + 86400 + 60)) # 1 hour + 1 minute tolerance

php ${BATS_TEST_DIRNAME}/../test_helper/php-feed-generator/feed-generator.php -a 15 -s 9 -f ${BATS_TEST_DIRNAME}/../test_helper/feeds/test.xml
# Trigger Update
Expand Down

0 comments on commit 993d739

Please sign in to comment.