go/packages: fix TestRejectInvalidQueries test case

We agreed on a different set of invalid queries than what the test
tests. The change got lost in a merge. Fix it.

Change-Id: I812e561d924f5dbd0c29e3a6ec5fb53022d09487
Reviewed-on: https://go-review.googlesource.com/c/142359
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Michael Matloob 2018-10-15 18:01:28 -04:00
parent 91ec7db2f8
commit 5d4988d199
1 changed files with 1 additions and 1 deletions

View File

@ -1262,7 +1262,7 @@ func TestJSON(t *testing.T) {
} }
func TestRejectInvalidQueries(t *testing.T) { func TestRejectInvalidQueries(t *testing.T) {
queries := []string{"=", "key=", "key=value", "file/a/b=c/..."} queries := []string{"key=", "key=value"}
cfg := &packages.Config{ cfg := &packages.Config{
Mode: packages.LoadImports, Mode: packages.LoadImports,
Env: append(os.Environ(), "GO111MODULE=off"), Env: append(os.Environ(), "GO111MODULE=off"),