jakubschwan commented on code in PR #372:
URL:
https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/372#discussion_r1495455943
##########
test/e2e/workflow_test.go:
##########
@@ -198,16 +198,27 @@ var _ = Describe("Validate the persistence ", Ordered,
func() {
}
Expect(h.Status).To(Equal(upStatus), "Pod
health is not UP")
for _, c := range h.Checks {
- if c.Name == "Database connections
health check" {
-
Expect(c.Status).To(Equal(upStatus), "Pod's database connection is not UP")
- return true
+ if withPersistence {
+ if c.Name == "Database
connections health check" {
+
Expect(c.Status).To(Equal(upStatus), "Pod's database connection is not UP")
+ return true
+ }
+ } else {
+
Expect(c.Name).NotTo(Equal("Database connections health check"), "persistence
configuration found in workflow")
}
}
+ if !withPersistence {
+ return true
+ }
}
return false
- }, 12*time.Minute).Should(BeTrue())
+ }, 1).Should(BeTrue())
Review Comment:
Looks like some time limit is lowered. Doesn't this change causing test
time-outs?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]