Skip to content

Commit 3939f43

Browse files
committed
bypass existing upstream error in pipeline
1 parent f66d2e0 commit 3939f43

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/suite/graceful_recovery_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,10 @@ func checkContainerLogsForErrors(ngfPodName string) {
270270
Expect(line).ToNot(ContainSubstring("[alert]"), line)
271271
Expect(line).ToNot(ContainSubstring("[emerg]"), line)
272272
if strings.Contains(line, "[error]") {
273-
Expect(line).To(ContainSubstring("connect() failed (111: Connection refused)"), line)
273+
expectedError1 := "connect() failed (111: Connection refused)"
274+
//FIXME(salonichf5) remove this error message check when https://github.com/nginxinc/nginx-gateway-fabric/issues/2090 is completed.
275+
expectedError2 := "no live upstreams while connecting to upstream"
276+
Expect(line).To(Or(Equal(expectedError1), Equal(expectedError2)))
274277
}
275278
}
276279

0 commit comments

Comments
 (0)