File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -330,22 +330,9 @@ var _ = Describe("Podman containers ", func() {
330
330
code , _ = bindings .CheckResponseCode (err )
331
331
Expect (code ).To (BeNumerically ("==" , http .StatusConflict ))
332
332
333
- // TODO for the life of me, i cannot get this to work. maybe another set
334
- // of eyes will
335
- // successful healthcheck
336
- // status := define.HealthCheckHealthy
337
- // for i:=0; i < 10; i++ {
338
- // result, err := containers.RunHealthCheck(connText, "hc")
339
- // Expect(err).To(BeNil())
340
- // if result.Status != define.HealthCheckHealthy {
341
- // fmt.Println("Healthcheck container still starting, retrying in 1 second")
342
- // time.Sleep(1 * time.Second)
343
- // continue
344
- // }
345
- // status = result.Status
346
- // break
347
- // }
348
- // Expect(status).To(Equal(define.HealthCheckHealthy))
333
+ result , err := containers .RunHealthCheck (bt .conn , "hc" , nil )
334
+ Expect (err ).ToNot (HaveOccurred ())
335
+ Expect (result .Status ).To (Equal (define .HealthCheckHealthy ))
349
336
350
337
// TODO enable this when wait is working
351
338
// healthcheck on a stopped container should be a 409
You can’t perform that action at this time.
0 commit comments