HomePhabricator

[backport#19264] [tests] Don't import asyncio to test magic bytes

Description

[backport#19264] [tests] Don't import asyncio to test magic bytes

Summary:
49236be099c5e8b3cadbc98d5216313e7e1a5a45 [tests] Don't import asyncio to test magic bytes (John Newbery)

Pull request description:

Simplify the test for invalid start bytes. No need to import asyncio and the Network thread.

Backport of core#19264

Depends on D9519

Test Plan:

ninja all && ./test/functional/test_runner.py p2p_invalid_messages

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D9520

Details

Provenance
fanquake <fanquake@gmail.com>Authored on Jun 14 2020, 04:54
majcostaCommitted on May 13 2021, 12:30
majcostaPushed on May 13 2021, 12:30
Reviewer
Restricted Project
Differential Revision
D9520: [backport#19264] [tests] Don't import asyncio to test magic bytes
Parents
rABCc91add32290e: [backport#19177] test: Fix and clean p2p_invalid_messages functional tests
Branches
Unknown
Tags
Unknown