Page MenuHomePhabricator

[tests] Add network_thread_ functions and use them in tests
ClosedPublic

Authored by Fabien on Jan 22 2019, 14:36.

Details

Summary

Add network thread_start(), network_thread_running() and
network_thread_join() utility functions in mininode.py

Update the tests to use them.

Partial backport of core PR11849
commits 5fc6e71 and 74e64f2

Depends on D2370

Test Plan
./test/functional/test_runner.py --extended

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
test/functional/abc-checkdatasig-activation.py
64 ↗(On Diff #6813)

Why does this work without the from test_framework.mininode import network_thread_start? Is it implicitly imported via script or blocktools or something?

This revision is now accepted and ready to land.Jan 22 2019, 18:16
test/functional/abc-checkdatasig-activation.py
64 ↗(On Diff #6813)

It is imported via comptool which imports mininode *

This revision was automatically updated to reflect the committed changes.