[rpc, bugfix] Enforce maximum value for setmocktime
This commit is contained in:
1 parent
0de63b8b46
commit
c2e0489b71
2 files changed
+6
-3
No files matched your search
@@ -23,7 +23,7 @@ class UptimeTest(BitcoinTestFramework):
|
||||
self._test_uptime()
|
||||
|
||||
def _test_negative_time(self):
|
||||
assert_raises_rpc_error(-8, "Mocktime cannot be negative: -1.", self.nodes[0].setmocktime, -1)
|
||||
assert_raises_rpc_error(-8, "Mocktime must be in the range [0, 9223372036], not -1.", self.nodes[0].setmocktime, -1)
|
||||
|
||||
def _test_uptime(self):
|
||||
wait_time = 10
|
||||
|
||||
Reference in new issue
Block a user