diff options
author | Troy Giorshev <troygiorshev@gmail.com> | 2020-07-23 14:36:17 -0400 |
---|---|---|
committer | Troy Giorshev <troygiorshev@gmail.com> | 2021-01-23 16:15:05 -0500 |
commit | 381f77be858d7417209b6de0b7cd23cb7eb99261 (patch) | |
tree | a7c774d63fc48cb39ac6ed17be6c3e99c44bb5d2 /test/functional/test_runner.py | |
parent | e4f378a505922c0f544b4cfbfdb169e884e02be9 (diff) | |
download | bitcoin-381f77be858d7417209b6de0b7cd23cb7eb99261.tar.xz |
Add Message Capture Test
Add a functional test for CaptureMessage. This connects and then
disconnects a peer so that the handshake can be used to check if capture
is being done correctly.
Included in a docstring in the test is the following:
From the data file we'll only check the structure.
We won't care about things like:
- Deserializing the payload of the message
- This is managed by the deserialize methods in
test_framework.messages
- The order of the messages
- There's no reason why we can't, say, change the order of the
messages in the handshake
- Message Type
- We can add new message types
We're ignoring these because they're simply too brittle to test here.
Diffstat (limited to 'test/functional/test_runner.py')
-rwxr-xr-x | test/functional/test_runner.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py index 9bbf862568..d821458226 100755 --- a/test/functional/test_runner.py +++ b/test/functional/test_runner.py @@ -264,6 +264,7 @@ BASE_SCRIPTS = [ 'p2p_add_connections.py', 'p2p_unrequested_blocks.py', 'p2p_blockfilters.py', + 'p2p_message_capture.py', 'feature_includeconf.py', 'feature_asmap.py', 'mempool_unbroadcast.py', |