mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
fix: tests were expecting linux-type signals
This commit is contained in:
parent
c66b90c4e5
commit
f83bc0073b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user