Skip to content

Commit ebc4b04

Browse files
committed
Rebase with fixes to skipped failing tests
1 parent 0da0582 commit ebc4b04

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/suite/graceful_recovery_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ var _ = Describe("Graceful Recovery test", Ordered, Label("functional", "gracefu
106106
})
107107

108108
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")
111109
runRestartNodeAbruptlyTest(teaURL, coffeeURL, files, &ns)
112110
})
113111
})
@@ -178,14 +176,16 @@ func runRestartNodeTest(teaURL, coffeeURL string, files []string, ns *core.Names
178176
ngfPodName := podNames[0]
179177
Expect(ngfPodName).ToNot(Equal(""))
180178

179+
time.Sleep(20 * time.Second)
180+
181181
if portFwdPort != 0 {
182182
ports := []string{fmt.Sprintf("%d:80", ngfHTTPForwardedPort), fmt.Sprintf("%d:443", ngfHTTPSForwardedPort)}
183183
portForwardStopCh = make(chan struct{})
184184
err = framework.PortForward(ctlr.GetConfigOrDie(), ngfNamespace, ngfPodName, ports, portForwardStopCh)
185185
Expect(err).ToNot(HaveOccurred())
186186
}
187187

188-
checkNGFFunctionality(teaURL, coffeeURL, ngfPodName, files, ns)
188+
checkNGFFunctionality(teaURL, coffeeURL, ngfPodName, "", files, ns)
189189
}
190190

191191
func runRecoveryTest(teaURL, coffeeURL, ngfPodName, containerName string, files []string, ns *core.Namespace) {
@@ -215,7 +215,7 @@ func runRecoveryTest(teaURL, coffeeURL, ngfPodName, containerName string, files
215215
Should(Succeed())
216216
}
217217

218-
checkNGFFunctionality(teaURL, coffeeURL, ngfPodName, files, ns)
218+
checkNGFFunctionality(teaURL, coffeeURL, ngfPodName, containerName, files, ns)
219219
}
220220

221221
func restartContainer(ngfPodName, containerName string) {
@@ -313,12 +313,12 @@ func expectRequestToFail(appURL, address string) error {
313313
return nil
314314
}
315315

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) {
317317
Eventually(
318318
func() error {
319319
return checkForWorkingTraffic(teaURL, coffeeURL)
320320
}).
321-
WithTimeout(timeoutConfig.RequestTimeout).
321+
WithTimeout(timeoutConfig.RequestTimeout * 2).
322322
WithPolling(500 * time.Millisecond).
323323
Should(Succeed())
324324

@@ -339,11 +339,11 @@ func checkNGFFunctionality(teaURL, coffeeURL, ngfPodName string, files []string,
339339
func() error {
340340
return checkForWorkingTraffic(teaURL, coffeeURL)
341341
}).
342-
WithTimeout(timeoutConfig.RequestTimeout).
342+
WithTimeout(timeoutConfig.RequestTimeout * 2).
343343
WithPolling(500 * time.Millisecond).
344344
Should(Succeed())
345345

346-
checkContainerLogsForErrors(ngfPodName, true)
346+
checkContainerLogsForErrors(ngfPodName, containerName == nginxContainerName)
347347
}
348348

349349
// checkContainerLogsForErrors checks both nginx and ngf container's logs for any possible errors.

0 commit comments

Comments
 (0)