fixup! refactor(container): restart handling

This commit is contained in:
Rob Watson 2025-04-13 09:50:45 +02:00
parent d65fca0afe
commit f8582ffa12

View File

@ -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