Skip to content

Commit

Permalink
Make test expectation less dependent on env
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-schulze-vireso committed Jul 26, 2022
1 parent a167b3f commit ad43ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/timeout.bats
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bats_require_minimum_version 1.5.0
run ! env BATS_TEST_TIMEOUT=1 SLEEP=10 bats -T "$FIXTURE_ROOT"
[ "${lines[0]}" == '1..1' ]
[[ "${lines[1]}" == 'not ok 1 my sleep 10 in '*'ms # timeout after 1s' ]] || false
[ "${lines[2]}" == '# (in test file test/fixtures/timeout/sleep2.bats, line 3)' ]
[ "${lines[2]}" == "# (in test file $RELATIVE_FIXTURE_ROOT/sleep2.bats, line 3)" ]
[ "${lines[3]}" == "# \`sleep \"\${SLEEP?}\"' failed due to timeout" ]
[[ "${lines[4]}" == *Terminated* ]] || false
[ "${#lines[@]}" -eq 5 ]
Expand Down

0 comments on commit ad43ed2

Please sign in to comment.