diff --git a/connectors/agent/README.md b/connectors/agent/README.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/agent/test_cli.py b/tests/agent/test_cli.py index ba8b1c6a4..ec1a6e41d 100644 --- a/tests/agent/test_cli.py +++ b/tests/agent/test_cli.py @@ -12,7 +12,7 @@ @patch("connectors.agent.cli.ConnectorsAgentComponent", return_value=AsyncMock()) -def test_main(patch_component): +def test_main_responds_to_sigterm(patch_component): async def kill(): await asyncio.sleep(0.2) os.kill(os.getpid(), signal.SIGTERM) @@ -20,6 +20,9 @@ async def kill(): loop = asyncio.new_event_loop() loop.create_task(kill()) + # No asserts here. + # main() will block forever unless it's killed with a signal + # This test succeeds if it exits, if it hangs it'll be killed by a timeout main() loop.close()