You've already forked runc
mirror of
https://github.com/opencontainers/runc.git
synced 2025-07-30 17:43:06 +03:00
Fix signal handling for unit tests
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@ -6,10 +6,11 @@ import "testing"
|
||||
|
||||
func TestStateStatus(t *testing.T) {
|
||||
states := map[containerState]Status{
|
||||
&stoppedState{}: Destroyed,
|
||||
&stoppedState{}: Stopped,
|
||||
&runningState{}: Running,
|
||||
&restoredState{}: Running,
|
||||
&pausedState{}: Paused,
|
||||
&createdState{}: Created,
|
||||
}
|
||||
for s, status := range states {
|
||||
if s.status() != status {
|
||||
|
Reference in New Issue
Block a user