Skip to content

Commit 67aa798

Browse files
committed
tests: slim down 12_node_ring to 6 nodes
1 parent 1c8f3e8 commit 67aa798

File tree

4 files changed

+10
-41
lines changed

4 files changed

+10
-41
lines changed
Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?><graphml xmlns="http://graphml.graphdrawing.org/xmlns">
22
<key id="services" attr.name="services" attr.type="string" for="graph" />
3-
<key id="version" attr.name="version" attr.type="string" for="node" />
43
<key id="image" attr.name="image" attr.type="string" for="node" />
54
<key id="bitcoin_config" attr.name="bitcoin_config" attr.type="string" for="node" />
65
<key id="tc_netem" attr.name="tc_netem" attr.type="string" for="node" />
@@ -17,51 +16,27 @@
1716
<key id="target_policy" attr.name="target_policy" attr.type="string" for="edge" />
1817
<graph edgedefault="directed">
1918
<node id="0">
20-
<data key="version">27.0</data>
19+
<data key="image">bitcoindevproject/bitcoin:27.0</data>
2120
<data key="bitcoin_config">-uacomment=w0 -debug=validation</data>
2221
</node>
2322
<node id="1">
24-
<data key="version">27.0</data>
23+
<data key="image">bitcoindevproject/bitcoin:27.0</data>
2524
<data key="bitcoin_config">-uacomment=w1 -debug=validation</data>
2625
</node>
2726
<node id="2">
28-
<data key="version">27.0</data>
27+
<data key="image">bitcoindevproject/bitcoin:27.0</data>
2928
<data key="bitcoin_config">-uacomment=w2 -debug=validation</data>
3029
</node>
3130
<node id="3">
32-
<data key="version">27.0</data>
31+
<data key="image">bitcoindevproject/bitcoin:27.0</data>
3332
<data key="bitcoin_config">-uacomment=w3</data>
3433
</node>
3534
<node id="4">
36-
<data key="version">27.0</data>
35+
<data key="image">bitcoindevproject/bitcoin:27.0</data>
3736
<data key="bitcoin_config">-uacomment=w4</data>
3837
</node>
3938
<node id="5">
40-
<data key="version">27.0</data>
41-
<data key="bitcoin_config">-uacomment=w5</data>
42-
</node>
43-
<node id="6">
44-
<data key="version">27.0</data>
45-
<data key="bitcoin_config">-uacomment=w6</data>
46-
</node>
47-
<node id="7">
48-
<data key="version">27.0</data>
49-
<data key="bitcoin_config">-uacomment=w7</data>
50-
</node>
51-
<node id="8">
52-
<data key="version">27.0</data>
53-
<data key="bitcoin_config">-uacomment=w8</data>
54-
</node>
55-
<node id="9">
56-
<data key="version">27.0</data>
57-
<data key="bitcoin_config">-uacomment=w9</data>
58-
</node>
59-
<node id="10">
60-
<data key="version">27.0</data>
61-
<data key="bitcoin_config">-uacomment=w10</data>
62-
</node>
63-
<node id="11">
64-
<data key="version">27.0</data>
39+
<data key="image">bitcoindevproject/bitcoin:27.0</data>
6540
<!-- no bitcoin_config to test unused options -->
6641
</node>
6742
<!-- connect the nodes in a ring to start -->
@@ -70,12 +45,6 @@
7045
<edge id="13" source="2" target="3"></edge>
7146
<edge id="14" source="3" target="4"></edge>
7247
<edge id="15" source="4" target="5"></edge>
73-
<edge id="16" source="5" target="6"></edge>
74-
<edge id="17" source="6" target="7"></edge>
75-
<edge id="18" source="7" target="8"></edge>
76-
<edge id="19" source="8" target="9"></edge>
77-
<edge id="20" source="9" target="10"></edge>
78-
<edge id="21" source="10" target="11"></edge>
79-
<edge id="21" source="11" target="0"></edge>
48+
<edge id="16" source="5" target="0"></edge>
8049
</graph>
8150
</graphml>

test/onion_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class OnionTest(TestBase):
1111
def __init__(self):
1212
super().__init__()
13-
self.graph_file_path = Path(os.path.dirname(__file__)) / "data" / "12_node_ring.graphml"
13+
self.graph_file_path = Path(os.path.dirname(__file__)) / "data" / "6_node_ring.graphml"
1414
self.onion_addr = None
1515

1616
def run_test(self):

test/rpc_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class RPCTest(TestBase):
1111
def __init__(self):
1212
super().__init__()
13-
self.graph_file_path = Path(os.path.dirname(__file__)) / "data" / "12_node_ring.graphml"
13+
self.graph_file_path = Path(os.path.dirname(__file__)) / "data" / "6_node_ring.graphml"
1414

1515
def run_test(self):
1616
self.start_server()

test/scenarios_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class ScenariosTest(TestBase):
1010
def __init__(self):
1111
super().__init__()
12-
self.graph_file_path = Path(os.path.dirname(__file__)) / "data" / "12_node_ring.graphml"
12+
self.graph_file_path = Path(os.path.dirname(__file__)) / "data" / "6_node_ring.graphml"
1313

1414
def run_test(self):
1515
try:

0 commit comments

Comments
 (0)