mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
tests: reenable developer tests.
72d103d6bbdeprecated DEVELOPER env var in favor of config.vars, but didn't update test_closing.py or test_gossip.py.5d0a54b7f0then removed the explicit DEVELOPER= setting from Travis. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
02b55e35b8
commit
965c20caae
@@ -2,8 +2,10 @@ from fixtures import * # noqa: F401,F403
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
with open('config.vars') as configfile:
|
||||||
|
config = dict([(line.rstrip().split('=', 1)) for line in configfile])
|
||||||
|
|
||||||
DEVELOPER = os.getenv("DEVELOPER", "0") == "1"
|
DEVELOPER = os.getenv("DEVELOPER", config['DEVELOPER']) == "1"
|
||||||
|
|
||||||
|
|
||||||
def test_closing_id(node_factory):
|
def test_closing_id(node_factory):
|
||||||
|
|||||||
@@ -6,7 +6,10 @@ import time
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
DEVELOPER = os.getenv("DEVELOPER", "0") == "1"
|
with open('config.vars') as configfile:
|
||||||
|
config = dict([(line.rstrip().split('=', 1)) for line in configfile])
|
||||||
|
|
||||||
|
DEVELOPER = os.getenv("DEVELOPER", config['DEVELOPER']) == "1"
|
||||||
|
|
||||||
|
|
||||||
@unittest.skipIf(not DEVELOPER, "needs --dev-broadcast-interval, --dev-channelupdate-interval")
|
@unittest.skipIf(not DEVELOPER, "needs --dev-broadcast-interval, --dev-channelupdate-interval")
|
||||||
|
|||||||
Reference in New Issue
Block a user