blob: 7ab9b4b995e03664199a58a16323c3f98d0b41a3 [file] [log] [blame] [edit]
package system
import (
"testing"
"gotest.tools/v3/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,
})
}