Handle case where shim is reaped before the call to the runtime start

This avoid erroring out with a false positive

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-07-01 09:11:29 -07:00
parent 2e4e484237
commit d8b9559d8e
4 changed files with 29 additions and 18 deletions

View file

@ -1,10 +1,10 @@
package supervisor
import (
"flag"
"os"
"sort"
"testing"
"flag"
"github.com/docker/containerd/runtime"
"github.com/docker/containerd/specs"
@ -71,7 +71,6 @@ func (p *testProcess) State() runtime.State {
}
func (p *testProcess) Wait() {
}
func TestSortProcesses(t *testing.T) {