From 3c9cee6197680fcc559f69ce4567fe549ccdb6ce Mon Sep 17 00:00:00 2001 From: "Ian G. Maia" Date: Fri, 21 Feb 2025 20:35:32 +0100 Subject: [PATCH] Always assert tests output Co-authored-by: Olivier Halligon --- tests/pr_changed_files/test_helpers.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/pr_changed_files/test_helpers.sh b/tests/pr_changed_files/test_helpers.sh index 706d40e..74ad934 100755 --- a/tests/pr_changed_files/test_helpers.sh +++ b/tests/pr_changed_files/test_helpers.sh @@ -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