@@ -106,8 +106,6 @@ var _ = Describe("Graceful Recovery test", Ordered, Label("functional", "gracefu
106
106
})
107
107
108
108
It ("recovers when node is restarted abruptly" , func () {
109
- // FIXME(bjee19) remove Skip() when https://github.com/nginxinc/nginx-gateway-fabric/issues/1108 is completed.
110
- Skip ("Test currently fails due to this issue: https://github.com/nginxinc/nginx-gateway-fabric/issues/1108" )
111
109
runRestartNodeAbruptlyTest (teaURL , coffeeURL , files , & ns )
112
110
})
113
111
})
@@ -178,14 +176,16 @@ func runRestartNodeTest(teaURL, coffeeURL string, files []string, ns *core.Names
178
176
ngfPodName := podNames [0 ]
179
177
Expect (ngfPodName ).ToNot (Equal ("" ))
180
178
179
+ time .Sleep (20 * time .Second )
180
+
181
181
if portFwdPort != 0 {
182
182
ports := []string {fmt .Sprintf ("%d:80" , ngfHTTPForwardedPort ), fmt .Sprintf ("%d:443" , ngfHTTPSForwardedPort )}
183
183
portForwardStopCh = make (chan struct {})
184
184
err = framework .PortForward (ctlr .GetConfigOrDie (), ngfNamespace , ngfPodName , ports , portForwardStopCh )
185
185
Expect (err ).ToNot (HaveOccurred ())
186
186
}
187
187
188
- checkNGFFunctionality (teaURL , coffeeURL , ngfPodName , files , ns )
188
+ checkNGFFunctionality (teaURL , coffeeURL , ngfPodName , "" , files , ns )
189
189
}
190
190
191
191
func runRecoveryTest (teaURL , coffeeURL , ngfPodName , containerName string , files []string , ns * core.Namespace ) {
@@ -215,7 +215,7 @@ func runRecoveryTest(teaURL, coffeeURL, ngfPodName, containerName string, files
215
215
Should (Succeed ())
216
216
}
217
217
218
- checkNGFFunctionality (teaURL , coffeeURL , ngfPodName , files , ns )
218
+ checkNGFFunctionality (teaURL , coffeeURL , ngfPodName , containerName , files , ns )
219
219
}
220
220
221
221
func restartContainer (ngfPodName , containerName string ) {
@@ -313,12 +313,12 @@ func expectRequestToFail(appURL, address string) error {
313
313
return nil
314
314
}
315
315
316
- func checkNGFFunctionality (teaURL , coffeeURL , ngfPodName string , files []string , ns * core.Namespace ) {
316
+ func checkNGFFunctionality (teaURL , coffeeURL , ngfPodName , containerName string , files []string , ns * core.Namespace ) {
317
317
Eventually (
318
318
func () error {
319
319
return checkForWorkingTraffic (teaURL , coffeeURL )
320
320
}).
321
- WithTimeout (timeoutConfig .RequestTimeout ).
321
+ WithTimeout (timeoutConfig .RequestTimeout * 2 ).
322
322
WithPolling (500 * time .Millisecond ).
323
323
Should (Succeed ())
324
324
@@ -339,11 +339,11 @@ func checkNGFFunctionality(teaURL, coffeeURL, ngfPodName string, files []string,
339
339
func () error {
340
340
return checkForWorkingTraffic (teaURL , coffeeURL )
341
341
}).
342
- WithTimeout (timeoutConfig .RequestTimeout ).
342
+ WithTimeout (timeoutConfig .RequestTimeout * 2 ).
343
343
WithPolling (500 * time .Millisecond ).
344
344
Should (Succeed ())
345
345
346
- checkContainerLogsForErrors (ngfPodName , true )
346
+ checkContainerLogsForErrors (ngfPodName , containerName == nginxContainerName )
347
347
}
348
348
349
349
// checkContainerLogsForErrors checks both nginx and ngf container's logs for any possible errors.
0 commit comments