Call delete before closing IO in shim

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-03-14 16:31:14 -07:00
parent bd23df8fd1
commit 52a1dfb418
2 changed files with 6 additions and 3 deletions

View file

@ -57,6 +57,10 @@ func (p *testProcess) Close() error {
return nil
}
func (p *testProcess) State() runtime.State {
return runtime.Running
}
func TestSortProcesses(t *testing.T) {
p := []runtime.Process{
&testProcess{"ls"},