From 1138666b4cd3584627be7c80dcf840c1492d8b4f Mon Sep 17 00:00:00 2001 From: "B. Blechschmidt" Date: Sat, 22 Jun 2024 22:44:15 +0200 Subject: [PATCH] Test --- .github/workflows/run-tests.yml | 2 +- tests/test_cli.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 2a2215a..2c17104 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -45,7 +45,7 @@ jobs: run: echo "$DOTENV" > tests/.env - name: Run CLI tests timeout-minutes: 30 - run: cd tests && python test_cli.py -v PalliumTestCase.test_mv + run: cd tests && python -m trace --trace test_cli.py -v PalliumTestCase.test_mv - name: Run sandbox tests timeout-minutes: 30 run: cd tests && python test_sandbox.py -v diff --git a/tests/test_cli.py b/tests/test_cli.py index 5355f14..5982c1c 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -152,10 +152,10 @@ def test_port_forwarding(self): sock.connect(('127.0.0.1', 1337)) sock.sendall(b'hello world\n') sock.close() - nc.wait(30) + nc.wait(5) with open(tmp.name, 'r') as f: assert f.read().strip() == 'hello world' if __name__ == '__main__': - unittest.main() + unittest.main(module='test_cli')