diff --git a/internal/lsp/cmd/check_test.go b/internal/lsp/cmd/check_test.go index 9f77e820..0665b4b7 100644 --- a/internal/lsp/cmd/check_test.go +++ b/internal/lsp/cmd/check_test.go @@ -40,10 +40,7 @@ func (l diagnostics) test(t *testing.T, e *packagestest.Exported) { if len(want) == 1 && want[0].Message == "" { continue } - args := []string{} - if *internalPipe { - args = append(args, "-remote=internal") - } + args := []string{"-remote=internal"} args = append(args, "check", fname) app := &cmd.Application{} app.Config = *e.Config diff --git a/internal/lsp/cmd/cmd_test.go b/internal/lsp/cmd/cmd_test.go index b67866ea..8a565871 100644 --- a/internal/lsp/cmd/cmd_test.go +++ b/internal/lsp/cmd/cmd_test.go @@ -5,7 +5,6 @@ package cmd_test import ( - "flag" "io/ioutil" "os" "strings" @@ -24,8 +23,6 @@ const ( expectedFormatCount = 4 ) -var internalPipe = flag.Bool("pipe", false, "connect the command line client to a server through a pipe") - func TestCommandLine(t *testing.T) { packagestest.TestAll(t, testCommandLine) }