File tree Expand file tree Collapse file tree 4 files changed +35
-4
lines changed Expand file tree Collapse file tree 4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 67
67
name : tests
68
68
path : tests.tar
69
69
70
+ p2p-tests :
71
+ needs : [ build ]
72
+ runs-on : ubuntu-20.04
73
+ container :
74
+ image : minaprotocol/mina-daemon:2.0.0rampup4-14047c5-focal-berkeley
75
+ strategy :
76
+ matrix :
77
+ test : [p2p_basic_incoming, p2p_basic_outgoing]
78
+ fail-fast : false
79
+
80
+ steps :
81
+ - name : Download tests
82
+ uses : actions/download-artifact@v3
83
+ with :
84
+ name : tests
85
+
86
+ - name : Unpack tests
87
+ run : |
88
+ tar xf tests.tar ./${{ matrix.test }}
89
+
90
+ - name : Run the test
91
+ run : |
92
+ ./${{ matrix.test }} --nocapture --test-threads=1
93
+
70
94
scenario-tests :
71
95
needs : [ build ]
72
96
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ use openmina_node_testing::scenarios::p2p::basic_incoming_connections::{
5
5
mod common;
6
6
7
7
scenario_test ! (
8
- accept_incoming_connection ,
8
+ accept_connection ,
9
9
AcceptIncomingConnection ,
10
10
AcceptIncomingConnection
11
11
) ;
12
12
scenario_test ! (
13
- accept_multiple_incoming_connections ,
13
+ accept_multiple_connections ,
14
14
AcceptMultipleIncomingConnections ,
15
15
AcceptMultipleIncomingConnections
16
16
) ;
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ use openmina_node_testing::scenarios::p2p::basic_outgoing_connections::{
5
5
mod common;
6
6
7
7
scenario_test ! (
8
- make_outgoing_connection ,
8
+ make_connection ,
9
9
MakeOutgoingConnection ,
10
10
MakeOutgoingConnection
11
11
) ;
12
12
scenario_test ! (
13
- make_multiple_outgoing_connections ,
13
+ make_multiple_connections ,
14
14
MakeMultipleOutgoingConnections ,
15
15
MakeMultipleOutgoingConnections
16
16
) ;
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ should be present in the state machine.
16
16
We should accept an incoming connection from an arbitrary node.
17
17
18
18
** Tests:**
19
+ - [ p2p_basic_incoming(accept_connection)] ( ../node/testing/src/scenarios/p2p/basic_incoming_connections.rs#L16 )
20
+ - [ p2p_basic_incoming(accept_multiple_connections)] ( ../node/testing/src/scenarios/p2p/basic_incoming_connections.rs#L62 )
19
21
- [ solo_node_accept_incoming] ( ../node/testing/src/scenarios/solo_node/basic_connectivity_accept_incoming.rs )
20
22
- [ multi_node_connection_discovery/OCamlToRust] ( ../node/testing/src/scenarios/multi_node/connection_discovery.rs#L127 ) (should be replaced with one with non-OCaml peer)
21
23
- TODO: fast-running short test
@@ -43,6 +45,11 @@ malicious node that uses the same peer ID.
43
45
44
46
## Outgoing connections
45
47
48
+ ### Node should connect to other nodes
49
+
50
+ - [ ` p2p_basic_outgoing(make_connection) ` ] ( ../node/testing/src/scenarios/p2p/basic_outgoing_connections.rs#L19 )
51
+ - [ ` p2p_basic_outgoing(make_multiple_connections) ` ] ( ../node/testing/src/scenarios/p2p/basic_outgoing_connections.rs#L74 )
52
+
46
53
### Node should connect to all available initial peers
47
54
48
55
TODO: what if the number of initial peers exceeds the max number of peers?
You can’t perform that action at this time.
0 commit comments