Switch exec to look at exit code not output status.

This commit is contained in:
Brendan Burns
2015-05-08 09:48:31 -07:00
parent 35c644a45f
commit c9324e6e38
8 changed files with 98 additions and 12 deletions

View File

@@ -619,3 +619,12 @@ func TestProbeContainer(t *testing.T) {
}
}
}
func TestIsAExitError(t *testing.T) {
var err error
err = &dockerExitError{nil}
_, ok := err.(uexec.ExitError)
if !ok {
t.Error("couldn't cast dockerExitError to exec.ExitError")
}
}