Skip to content

Commit 15adac3

Browse files
committed
test(parallel): assert cleanup return code so strict mode does not abort
1 parent b0a3106 commit 15adac3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/unit/parallel_test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ function test_cleanup_refuses_path_outside_bashunit_parallel() {
152152
mkdir -p "$unsafe_dir"
153153
export TEMP_DIR_PARALLEL_TEST_SUITE="$unsafe_dir"
154154

155-
bashunit::parallel::cleanup
155+
local rc=0
156+
bashunit::parallel::cleanup || rc=$?
156157

158+
assert_same "1" "$rc"
157159
assert_directory_exists "$unsafe_dir"
158160
}
159161

0 commit comments

Comments
 (0)