1
0
mirror of https://github.com/docker/cli.git synced 2026-01-26 15:41:42 +03:00
Files
cli/e2e/system/inspect_test.go
Sebastiaan van Stijn 9ba1314d3a cli/command/system: fix error formatting (errlint)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-09-09 19:58:07 +02:00

19 lines
416 B
Go

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,
})
}