Page MenuHomePhabricator

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

Authored by Fabien on Jul 30 2019, 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 5 2019, 06:11