From 1dfe98cf1f92bdc10d59f782574b7bfb3d9820a7 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Thu, 10 Aug 2023 03:55:48 +0300 Subject: [PATCH] Test shutting down minode --i2p if there is no running i2pd --- minode/tests/test_process.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/minode/tests/test_process.py b/minode/tests/test_process.py index db0187b..eb65622 100644 --- a/minode/tests/test_process.py +++ b/minode/tests/test_process.py @@ -138,3 +138,9 @@ class TestProcessI2P(TestProcess): for c in self.connections(): self.assertEqual(c.raddr[0], '127.0.0.1') self.assertEqual(c.raddr[1], 7656) + + +@unittest.skipUnless(i2p_port_free, 'Detected running i2pd') +class TestProcessNoI2P(TestProcessShutdown): + """Test minode process shutdown with --i2p and no IP""" + _process_cmd = ['minode', '--i2p', '--no-ip']