Skip to content

Commit a0126a6

Browse files
committed
Add expected error
1 parent a22f793 commit a0126a6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/suite/graceful_recovery_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,16 @@ func checkContainerLogsForErrors(ngfPodName string, checkNginxLogsOnly bool) {
368368
if strings.Contains(line, "[error]") {
369369
expectedError1 := "connect() failed (111: Connection refused)"
370370
expectedError2 := "product.connect.nginx.com could not be resolved"
371+
expectedError3 := "server returned 429"
371372
// FIXME(salonichf5) remove this error message check
372373
// when https://github.com/nginxinc/nginx-gateway-fabric/issues/2090 is completed.
373-
expectedError3 := "no live upstreams while connecting to upstream"
374+
expectedError4 := "no live upstreams while connecting to upstream"
374375
Expect(line).To(Or(
375-
ContainSubstring(expectedError1), ContainSubstring(expectedError2), ContainSubstring(expectedError3)))
376+
ContainSubstring(expectedError1),
377+
ContainSubstring(expectedError2),
378+
ContainSubstring(expectedError3),
379+
ContainSubstring(expectedError4),
380+
))
376381
}
377382
}
378383

0 commit comments

Comments
 (0)