Skip to content

Commit

Permalink
[tests] Complete IN deterministic and legacy test suite
Browse files Browse the repository at this point in the history
Added one "dummy" setup test
  • Loading branch information
giaki3003 committed Sep 1, 2020
1 parent 161140e commit 97ed8a9
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 213 deletions.
53 changes: 53 additions & 0 deletions test/functional/feature_in_setup.py
@@ -0,0 +1,53 @@
#!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test basic validation checks on a simulated IN chain"""
# Imports should be in PEP8 ordering (std library first, then third party
# libraries then local imports).
from collections import defaultdict

# Avoid wildcard * imports if possible
from test_framework.blocktools import (create_block, create_coinbase)
from test_framework.messages import CInv
from test_framework.mininode import (
P2PInterface,
mininode_lock,
msg_block,
msg_getdata,
)
from test_framework.test_framework import SinTestFramework
from test_framework.util import (
assert_equal,
connect_nodes,
wait_until,
)

class INSetupTest(SinTestFramework):

def set_test_params(self):
"""Override test parameters for your individual test.
This method must be overridden and num_nodes must be exlicitly set."""
self.setup_clean_chain = True
self.num_nodes = 12
# Use self.extra_args to change command-line arguments for the nodes
#self.extra_args = [[], ["-logips"], []]
self.enable_mocktime()

def run_test(self):
"""Main test logic"""
self.nodes[0].add_p2p_connection(BaseNode())

self.setup_infinitynode_params(3)

self.log.info("Deterministic IN setup starting")

self.init_infinitynodes(True)

self.nodes[0].generate(20)

self.log.info("Deterministic IN setup concluded successfully")

if __name__ == '__main__':
INSetupTest().main()
213 changes: 0 additions & 213 deletions test/functional/feature_in_test.py

This file was deleted.

0 comments on commit 97ed8a9

Please sign in to comment.