fixup! refactor(container): restart handling
This commit is contained in:
parent
d65fca0afe
commit
f8582ffa12
@ -221,7 +221,7 @@ func TestClientRunContainerWithRestart(t *testing.T) {
|
||||
assert.Equal(t, "restarting", state.Status)
|
||||
assert.Equal(t, "unhealthy", state.HealthState)
|
||||
assert.Nil(t, state.ExitCode)
|
||||
assert.Equal(t, 0, state.RestartCount) // not incremented until the actual restart
|
||||
assert.Zero(t, state.RestartCount) // not incremented until the actual restart
|
||||
|
||||
// During the restart, the "running" status is triggered by Docker events
|
||||
// only. So we don't expect one in unit tests. (Probably the initial startup
|
||||
|
Loading…
x
Reference in New Issue
Block a user