Skip to content

Commit

Permalink
Always assert tests output
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Halligon <olivier.halligon@automattic.com>
  • Loading branch information
iangmaia and AliSoftware authored Feb 21, 2025
1 parent 10481bb commit 3c9cee6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/pr_changed_files/test_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ assert_result() {
local message="$5"

assert_equal "$actual_code" "$expected_code" "Exit code - $message"
if [[ -n "$expected_output" ]]; then
assert_equal "$actual_output" "$expected_output" "Output - $message"
fi
assert_equal "$actual_output" "$expected_output" "Output - $message"
}

# Helper function to assert that two values are equal
Expand Down

0 comments on commit 3c9cee6

Please sign in to comment.