[rest] add a more verbose error message for invalid header counts

This commit is contained in:
Niklas Gögge
2021-12-22 20:47:53 +01:00
parent 83b8f3a896
commit 064abd14a5
2 changed files with 3 additions and 3 deletions

View File

@@ -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),
)