diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index 6b8970697..0a1818d18 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -740,7 +740,7 @@ class LightningDTests(BaseLightningDTests): l2.daemon.wait_for_log('-> ONCHAIND_CHEATED') # FIXME: l1 should try to stumble along! - l1.has_failed() + l1.allow_failure() # l2 should spend all of the outputs (except to-us). # Could happen in any order, depending on commitment tx. @@ -802,7 +802,7 @@ class LightningDTests(BaseLightningDTests): l2.daemon.wait_for_log('-> ONCHAIND_CHEATED') # FIXME: l1 should try to stumble along! - l1.has_failed() + l1.allow_failure() # l2 should spend all of the outputs (except to-us). # Could happen in any order, depending on commitment tx. diff --git a/tests/utils.py b/tests/utils.py index e502f17c0..6a8f8ee35 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -310,7 +310,8 @@ class LightningNode(object): db.close() return result - def has_failed(self): + # FIXME: we should flag daemon on startup, suppress error + def allow_failure(self): """Note that a daemon has (deliberately) crashed, so we don't fail on cleanup""" self.known_fail = True