diff --git a/cli/command/container/opts_test.go b/cli/command/container/opts_test.go index 720c9dfa04..c54f3107b6 100644 --- a/cli/command/container/opts_test.go +++ b/cli/command/container/opts_test.go @@ -1016,12 +1016,8 @@ func TestParseLabelfileVariables(t *testing.T) { func TestParseEntryPoint(t *testing.T) { config, _, _, err := parseRun([]string{"--entrypoint=anything", "cmd", "img"}) - if err != nil { - t.Fatal(err) - } - if len(config.Entrypoint) != 1 && config.Entrypoint[0] != "anything" { - t.Fatalf("Expected entrypoint 'anything', got %v", config.Entrypoint) - } + assert.NilError(t, err) + assert.Check(t, is.DeepEqual([]string(config.Entrypoint), []string{"anything"})) } func TestValidateDevice(t *testing.T) {