@@ -309,7 +309,7 @@ func TestContainerHealthCheckAdvance(t *testing.T) {
309309 debug , _ := json .MarshalIndent (h , "" , " " )
310310 t .Log (string (debug ))
311311 assert .Assert (t , h != nil , "expected health state" )
312- assert .Equal (t , h .FailingStreak , 1 )
312+ assert .Assert (t , h .FailingStreak >= 1 , "expected at least one failing streak" )
313313 assert .Assert (t , len (inspect .State .Health .Log ) > 0 , "expected health log to have entries" )
314314 last := inspect .State .Health .Log [0 ]
315315 assert .Equal (t , - 1 , last .ExitCode )
@@ -348,7 +348,7 @@ func TestContainerHealthCheckAdvance(t *testing.T) {
348348 t .Log (string (debug ))
349349 assert .Assert (t , h != nil , "expected health state" )
350350 assert .Equal (t , h .Status , healthcheck .Unhealthy )
351- assert .Equal (t , h .FailingStreak , 2 )
351+ assert .Assert (t , h .FailingStreak >= 1 , "expected atleast one FailingStreak" )
352352 }),
353353 }
354354 },
@@ -411,7 +411,7 @@ func TestContainerHealthCheckAdvance(t *testing.T) {
411411 t .Log (string (debug ))
412412 assert .Assert (t , h != nil , "expected health state" )
413413 assert .Equal (t , h .Status , healthcheck .Unhealthy )
414- assert .Equal (t , h .FailingStreak , 1 )
414+ assert .Assert (t , h .FailingStreak >= 1 , "expected at least one failing streak" )
415415 }),
416416 }
417417 },
@@ -633,7 +633,7 @@ func TestContainerHealthCheckAdvance(t *testing.T) {
633633 assert .Assert (t , h != nil , "expected health state" )
634634 assert .Equal (t , h .Status , healthcheck .Healthy )
635635 assert .Equal (t , h .FailingStreak , 0 )
636- assert .Assert (t , len (h .Log ) == 1 , "expected one log entry" )
636+ assert .Assert (t , len (h .Log ) >= 1 , "expected at least one log entry" )
637637 output := h .Log [0 ].Output
638638 assert .Assert (t , strings .HasSuffix (output , "[truncated]" ), "expected output to be truncated with '[truncated]'" )
639639 }),
0 commit comments