diff options
author | dergoegge <n.goeggi@gmail.com> | 2024-04-15 08:53:52 +0100 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2024-04-15 09:51:06 +0100 |
commit | c2e0489b7125cceaeef355fc274dd8988822fff4 (patch) | |
tree | 472a526e6506186e2c8645150df8517612c9cab7 /test | |
parent | 0de63b8b46eff5cda85b4950062703324ba65a80 (diff) | |
download | bitcoin-c2e0489b7125cceaeef355fc274dd8988822fff4.tar.xz |
[rpc, bugfix] Enforce maximum value for setmocktime
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/rpc_uptime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/rpc_uptime.py b/test/functional/rpc_uptime.py index cb99e483ec..f8df59d02a 100755 --- a/test/functional/rpc_uptime.py +++ b/test/functional/rpc_uptime.py @@ -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 |