Skip to content

Commit c2f1e3d

Browse files
committed
fix error check
1 parent 6ede9e4 commit c2f1e3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/suite/graceful_recovery_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@ func checkContainerLogsForErrors(ngfPodName string) {
282282
Expect(err).ToNot(HaveOccurred())
283283

284284
for _, line := range strings.Split(logs, "\n") {
285-
if *plusEnabled && strings.Contains(line, "[error]") {
285+
if *plusEnabled && strings.Contains(line, "\"level\":\"error\"") {
286286
Expect(line).To(ContainSubstring("Usage reporting must be enabled when using NGINX Plus"), line)
287287
} else {
288-
Expect(line).ToNot(ContainSubstring("[error]"), line)
288+
Expect(line).ToNot(ContainSubstring("\"level\":\"error\""), line)
289289
}
290290
}
291291
}

0 commit comments

Comments
 (0)