Browse Source

tests: reenable developer tests.

72d103d6bb deprecated DEVELOPER env var
in favor of config.vars, but didn't update test_closing.py or test_gossip.py.

5d0a54b7f0 then removed the explicit
DEVELOPER= setting from Travis.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 6 years ago
committed by Christian Decker
parent
commit
965c20caae
  1. 4
      tests/test_closing.py
  2. 5
      tests/test_gossip.py

4
tests/test_closing.py

@ -2,8 +2,10 @@ from fixtures import * # noqa: F401,F403
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):

5
tests/test_gossip.py

@ -6,7 +6,10 @@ import time
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")

Loading…
Cancel
Save