mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-14 06:32:33 +01:00
[tests] remove direct testing on JSONRPCException from individual test cases
This commit is contained in:
@@ -423,11 +423,11 @@ class ImportMultiTest (BitcoinTestFramework):
|
||||
|
||||
# Bad or missing timestamps
|
||||
self.log.info("Should throw on invalid or missing timestamp values")
|
||||
assert_raises_message(JSONRPCException, 'Missing required timestamp field for key',
|
||||
assert_raises_jsonrpc(-3, 'Missing required timestamp field for key',
|
||||
self.nodes[1].importmulti, [{
|
||||
"scriptPubKey": address['scriptPubKey'],
|
||||
}])
|
||||
assert_raises_message(JSONRPCException, 'Expected number or "now" timestamp value for key. got type string',
|
||||
assert_raises_jsonrpc(-3, 'Expected number or "now" timestamp value for key. got type string',
|
||||
self.nodes[1].importmulti, [{
|
||||
"scriptPubKey": address['scriptPubKey'],
|
||||
"timestamp": "",
|
||||
|
||||
Reference in New Issue
Block a user