Page MenuHomePhabricator

[tests] simplify binary and hex response parsing in interface_rest.py
ClosedPublic

Authored by Fabien on Tue, Jul 30, 08:32.

Details

Summary
We use assert_greater_than_or_equal(), since the hex response contains
an extra b'\n' traling byte.

Partial backport of core PR12766 (commit 55efc1c)
https://github.com/bitcoin/bitcoin/pull/12766/commits/55efc1f62cef7e19efcb58ba68fbc2053bfa19a0

Depends on D3769

Test Plan
./test/functional/test_runner.py interface_rest

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.