mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-03 20:35:17 +02:00
test: create assert_not_equal util and add to where imports are needed
In the functional tests there are lots of cases where we assert != which this new util will replace, we also are adding the imports and the new assertion
This commit is contained in:
@@ -33,6 +33,7 @@ from .p2p import P2P_SERVICES, P2P_SUBVERSION
|
||||
from .util import (
|
||||
MAX_NODES,
|
||||
assert_equal,
|
||||
assert_not_equal,
|
||||
append_config,
|
||||
delete_cookie_file,
|
||||
get_auth_cookie,
|
||||
@@ -668,7 +669,7 @@ class TestNode():
|
||||
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
|
||||
assert_not_equal(ret, 0) # Exit code must indicate failure
|
||||
self.running = False
|
||||
self.process = None
|
||||
# Check stderr for expected message
|
||||
|
||||
Reference in New Issue
Block a user