Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions pkg/bindings/test/containers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,22 +330,9 @@ var _ = Describe("Podman containers ", func() {
code, _ = bindings.CheckResponseCode(err)
Expect(code).To(BeNumerically("==", http.StatusConflict))

// TODO for the life of me, i cannot get this to work. maybe another set
// of eyes will
// successful healthcheck
// status := define.HealthCheckHealthy
// for i:=0; i < 10; i++ {
// result, err := containers.RunHealthCheck(connText, "hc")
// Expect(err).To(BeNil())
// if result.Status != define.HealthCheckHealthy {
// fmt.Println("Healthcheck container still starting, retrying in 1 second")
// time.Sleep(1 * time.Second)
// continue
// }
// status = result.Status
// break
// }
// Expect(status).To(Equal(define.HealthCheckHealthy))
result, err := containers.RunHealthCheck(bt.conn, "hc", nil)
Expect(err).ToNot(HaveOccurred())
Expect(result.Status).To(Equal(define.HealthCheckHealthy))

// TODO enable this when wait is working
// healthcheck on a stopped container should be a 409
Expand Down