mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Switch exec to look at exit code not output status.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user