aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_logging.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2018-02-07 09:36:13 -0500
committerMarcoFalke <falke.marco@gmail.com>2018-03-18 12:29:02 -0400
commit0ec08a672dce3f619e46d0c7455e95a13dc5c4e2 (patch)
treee14adca17c192046a2ca0ae6393254702f241124 /test/functional/feature_logging.py
parentaf20f9b1d485582b8c8aa8294bac4f2c540246d2 (diff)
[Tests] Move assert_start_raises_init_error method to TestNode
Diffstat (limited to 'test/functional/feature_logging.py')
-rwxr-xr-xtest/functional/feature_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/feature_logging.py b/test/functional/feature_logging.py
index da4e7b0398..65a03e50ad 100755
--- a/test/functional/feature_logging.py
+++ b/test/functional/feature_logging.py
@@ -30,7 +30,7 @@ class LoggingTest(BitcoinTestFramework):
invdir = os.path.join(self.nodes[0].datadir, "regtest", "foo")
invalidname = os.path.join("foo", "foo.log")
self.stop_node(0)
- self.assert_start_raises_init_error(0, ["-debuglogfile=%s" % (invalidname)],
+ self.nodes[0].assert_start_raises_init_error(["-debuglogfile=%s" % (invalidname)],
"Error: Could not open debug log file")
assert not os.path.isfile(os.path.join(invdir, "foo.log"))
@@ -44,7 +44,7 @@ class LoggingTest(BitcoinTestFramework):
self.stop_node(0)
invdir = os.path.join(self.options.tmpdir, "foo")
invalidname = os.path.join(invdir, "foo.log")
- self.assert_start_raises_init_error(0, ["-debuglogfile=%s" % invalidname],
+ self.nodes[0].assert_start_raises_init_error(["-debuglogfile=%s" % invalidname],
"Error: Could not open debug log file")
assert not os.path.isfile(os.path.join(invdir, "foo.log"))