Skip tests instead of failing if I2PController freezes
All checks were successful
Testing / default (push) Successful in 6m0s

This commit is contained in:
Lee Miller 2024-07-29 05:33:18 +03:00
parent a01e2d3469
commit d106078dac
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -160,9 +160,10 @@ class TestProcessI2P(TestProcess):
cls.freezed = True
def setUp(self):
"""Fail before any test if I2PController freezed"""
"""Skip any test if I2PController freezed"""
if self.freezed:
self.fail('I2PController has probably failed to start')
raise unittest.SkipTest(
'I2PController has probably failed to start')
def test_saved_keys(self):
"""Check saved i2p keys"""