From 4e308d73ba3610838305997b6f4793c4f4dcfc4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Wed, 22 Sep 2021 14:59:42 +0100 Subject: [PATCH] cmd/go: refer to the right package in a test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The test checks that two packages aren't non-test dependencies. There's a copy-paste typo, however. When net/http is unexpectedly found as a dependendency, we instead mention the other package in the error message. Change-Id: I3232c6252255c839e08efa048f2232c192d0fb85 Reviewed-on: https://go-review.googlesource.com/c/go/+/351372 Trust: Daniel Martí Reviewed-by: Jay Conrod Run-TryBot: Jay Conrod TryBot-Result: Go Bot --- src/cmd/go/internal/imports/scan_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/internal/imports/scan_test.go b/src/cmd/go/internal/imports/scan_test.go index 2d245ee787..7e69c56513 100644 --- a/src/cmd/go/internal/imports/scan_test.go +++ b/src/cmd/go/internal/imports/scan_test.go @@ -33,7 +33,7 @@ func TestScan(t *testing.T) { } if p == "net/http" { // A test import but not an import - t.Errorf("json reported as importing encoding/binary but does not") + t.Errorf("json reported as importing net/http but does not") } } if !foundBase64 { -- 2.50.0