Skip to content

Commit a743363

Browse files
committed
fixed test
1 parent c1d90f1 commit a743363

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gopls/internal/test/integration/misc/link_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module import.test
3636
3737
go 1.12
3838
-- [email protected]/pkg/const.go --
39+
// package documentation
3940
package pkg
4041
4142
const Hello = "Hello"
@@ -49,10 +50,11 @@ const Hello = "Hello"
4950

5051
modLink := "https://pkg.go.dev/mod/[email protected]"
5152
pkgLink := "https://pkg.go.dev/[email protected]/pkg"
53+
pkgDoc := "package documentation"
5254

5355
// First, check that we get the expected links via hover and documentLink.
5456
content, _ := env.Hover(env.RegexpSearch("main.go", "pkg.Hello"))
55-
if content == nil || !strings.Contains(content.Value, pkgLink) {
57+
if content == nil || !strings.Contains(content.Value, pkgDoc) {
5658
t.Errorf("hover: got %v in main.go, want contains %q", content, pkgLink)
5759
}
5860
content, _ = env.Hover(env.RegexpSearch("go.mod", "import.test"))

0 commit comments

Comments
 (0)