fix: tests were expecting linux-type signals

This commit is contained in:
Mose Müller 2025-01-17 20:23:45 +01:00
parent c66b90c4e5
commit f83bc0073b

View File

@ -423,7 +423,7 @@ async def test_exit_on_failure(
service_instance.my_task.start() service_instance.my_task.start()
await asyncio.sleep(0.1) await asyncio.sleep(0.1)
assert "os.kill called with signal=15 and pid=" in caplog.text assert "os.kill called with signal=" in caplog.text
assert "Task 'my_task' encountered an exception" in caplog.text assert "Task 'my_task' encountered an exception" in caplog.text
@ -453,5 +453,5 @@ async def test_exit_on_failure_exceeding_rate_limit(
service_instance.my_task.start() service_instance.my_task.start()
await asyncio.sleep(0.5) await asyncio.sleep(0.5)
assert "os.kill called with signal=15 and pid=" in caplog.text assert "os.kill called with signal=" in caplog.text
assert "Task 'my_task' encountered an exception" in caplog.text assert "Task 'my_task' encountered an exception" in caplog.text