@@ -94,7 +94,7 @@ func TestF3WithLookback(t *testing.T) {
94
94
env .requireInstanceEventually (5 , eventualCheckTimeout , true )
95
95
}
96
96
97
- func TestF3PauseResumeCatchup (t * testing.T ) {
97
+ func TestF3StopStartCatchup (t * testing.T ) {
98
98
// Quiet down the logs since the test asserts a scenario that triggers
99
99
// OhShitStore ERROR level logs.
100
100
_ = logging .SetLogLevel ("f3/ohshitstore" , "DPANIC" )
@@ -104,8 +104,8 @@ func TestF3PauseResumeCatchup(t *testing.T) {
104
104
env .requireEpochFinalizedEventually (env .manifest .BootstrapEpoch , eventualCheckTimeout )
105
105
106
106
// Pausing two nodes should pause the network.
107
- env .pauseNode (1 )
108
- env .pauseNode (2 )
107
+ env .stopNode (1 )
108
+ env .stopNode (2 )
109
109
110
110
env .requireF3NotRunningEventually (eventualCheckTimeout , nodeMatchers .byID (1 , 2 ))
111
111
@@ -118,22 +118,23 @@ func TestF3PauseResumeCatchup(t *testing.T) {
118
118
}, eventualCheckTimeout , eventualCheckInterval )
119
119
120
120
// Resuming node 1 should continue agreeing on instances.
121
- env .resumeNode (1 )
121
+ env .startNode (1 )
122
+ env .connectAll ()
122
123
env .requireF3RunningEventually (eventualCheckTimeout , nodeMatchers .byID (1 ))
123
124
124
125
// Wait until we're far enough that pure GPBFT catchup should be impossible.
125
126
targetInstance := env .nodes [1 ].currentGpbftInstance () + env .manifest .CommitteeLookback + 1
126
127
env .requireInstanceEventually (targetInstance , eventualCheckTimeout , false )
127
128
128
- env .resumeNode (2 )
129
+ env .startNode (2 )
129
130
env .requireF3RunningEventually (eventualCheckTimeout , nodeMatchers .byID (2 ))
130
131
131
132
// Everyone should catch up eventually
132
133
env .requireInstanceEventually (targetInstance , eventualCheckTimeout , true )
133
134
134
135
// Pause the "good" node.
135
136
node0failInstance := env .nodes [0 ].currentGpbftInstance ()
136
- env .pauseNode (0 )
137
+ env .stopNode (0 )
137
138
env .requireF3NotRunningEventually (eventualCheckTimeout , nodeMatchers .byID (0 ))
138
139
139
140
// We should be able to make progress with the remaining nodes.
@@ -337,12 +338,12 @@ func (n *testNode) init() *f3.F3 {
337
338
return n .f3
338
339
}
339
340
340
- func (n * testNode ) pause () {
341
- require .NoError (n .e .t , n .f3 .Pause (n .e .testCtx ))
341
+ func (n * testNode ) stop () {
342
+ require .NoError (n .e .t , n .f3 .Stop (n .e .testCtx ))
342
343
}
343
344
344
- func (n * testNode ) resume () {
345
- require .NoError (n .e .t , n .f3 .Resume (n .e .testCtx ))
345
+ func (n * testNode ) start () {
346
+ require .NoError (n .e .t , n .f3 .Start (n .e .testCtx ))
346
347
}
347
348
348
349
type testNodeStatus struct {
@@ -629,12 +630,12 @@ func (e *testEnv) withManifest(m manifest.Manifest) *testEnv {
629
630
return e
630
631
}
631
632
632
- func (e * testEnv ) pauseNode (i int ) {
633
- e .nodes [i ].pause ()
633
+ func (e * testEnv ) stopNode (i int ) {
634
+ e .nodes [i ].stop ()
634
635
}
635
636
636
- func (e * testEnv ) resumeNode (i int ) {
637
- e .nodes [i ].resume ()
637
+ func (e * testEnv ) startNode (i int ) {
638
+ e .nodes [i ].start ()
638
639
}
639
640
640
641
func (e * testEnv ) injectDatastoreFailures (i int , fn func (op string ) error ) {
0 commit comments