Skip to content

Commit

Permalink
test: Assert that exit code indicates failure
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Apr 29, 2021
1 parent faecb72 commit fad6269
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/test_framework/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ def assert_start_raises_init_error(self, extra_args=None, expected_msg=None, mat
self.start(extra_args, stdout=log_stdout, stderr=log_stderr, *args, **kwargs)
ret = self.process.wait(timeout=self.rpc_timeout)
self.log.debug(self._node_msg(f'bitcoind exited with status {ret} during initialization'))
assert ret != 0 # Exit code must indicate failure
self.running = False
self.process = None
# Check stderr for expected message
Expand Down

0 comments on commit fad6269

Please sign in to comment.