blob: 2b3295972127ac2c6d1f0acaa51f981cbf2b92cb [file] [log] [blame]
package system
import (
"testing"
"gotest.tools/icmd"
)
// TestInspectInvalidReference migrated from moby/integration-cli
func TestInspectInvalidReference(t *testing.T) {
// This test should work on both Windows and Linux
result := icmd.RunCmd(icmd.Command("docker", "inspect", "FooBar"))
result.Assert(t, icmd.Expected{
Out: "[]",
Err: "Error: No such object: FooBar",
ExitCode: 1,
})
}