Skip to content

Commit d854baa

Browse files
committed
fix(ci): accept graceful taskiq abort
1 parent 705c14d commit d854baa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_issue_9.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,10 @@ def smoke_taskiq_process(
293293
if process.poll() is None:
294294
output, forced = stop_process_group(process)
295295
assert not forced, f"{' '.join(command)} required a forced shutdown:\n{output}"
296-
expected_return_codes = {0, 0xC000013A} if os.name == "nt" else {0, 130, -signal.SIGINT}
296+
expected_return_codes = {0, 0xC000013A} if os.name == "nt" else {0, 1, 130, -signal.SIGINT}
297297
assert process.returncode in expected_return_codes, output
298+
if process.returncode == 1:
299+
assert "Aborted!" in output
298300

299301

300302
def test_taskiq_process_commands_start_and_stop_against_real_redis(

0 commit comments

Comments
 (0)