aboutsummaryrefslogtreecommitdiff
path: root/test/functional/interface_rest.py
diff options
context:
space:
mode:
authorNiklas Gögge <n.goeggi@gmail.com>2021-12-22 20:47:53 +0100
committerNiklas Gögge <n.goeggi@gmail.com>2021-12-22 20:47:53 +0100
commit064abd14a55e0fa1bff530237816a748d01e0ddb (patch)
tree66494b42b3ef8f8f411d45026ce6b068543381b0 /test/functional/interface_rest.py
parent83b8f3a8961baa34a136ecfaf62c3ea0d133b6d6 (diff)
downloadbitcoin-064abd14a55e0fa1bff530237816a748d01e0ddb.tar.xz
[rest] add a more verbose error message for invalid header counts
Diffstat (limited to 'test/functional/interface_rest.py')
-rwxr-xr-xtest/functional/interface_rest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py
index 9cb452e9c0..8f6743d97c 100755
--- a/test/functional/interface_rest.py
+++ b/test/functional/interface_rest.py
@@ -279,7 +279,7 @@ class RESTTest (BitcoinTestFramework):
# Test number parsing
for num in ['5a', '-5', '0', '2001', '99999999999999999999999999999999999']:
assert_equal(
- bytes(f'Header count out of acceptable range (1-2000): {num}\r\n', 'ascii'),
+ bytes(f'Header count is invalid or out of acceptable range (1-2000): {num}\r\n', 'ascii'),
self.test_rest_request(f"/headers/{num}/{bb_hash}", ret_type=RetType.BYTES, status=400),
)