Skip to content

Commit fad6269

Browse files
author
MarcoFalke
committed
test: Assert that exit code indicates failure
1 parent faecb72 commit fad6269

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/functional/test_framework/test_node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ def assert_start_raises_init_error(self, extra_args=None, expected_msg=None, mat
491491
self.start(extra_args, stdout=log_stdout, stderr=log_stderr, *args, **kwargs)
492492
ret = self.process.wait(timeout=self.rpc_timeout)
493493
self.log.debug(self._node_msg(f'bitcoind exited with status {ret} during initialization'))
494+
assert ret != 0 # Exit code must indicate failure
494495
self.running = False
495496
self.process = None
496497
# Check stderr for expected message

0 commit comments

Comments
 (0)