@@ -71,14 +71,14 @@ func serverAddress(t *testing.T) string {
71
71
return ln .Addr ().String ()
72
72
}
73
73
74
- func waitForServerReady (t * testing.T , ctx context.Context , cmd * exec. Cmd , addr string ) {
74
+ func waitForServerReady (t * testing.T , ctx context.Context , addr string ) {
75
75
waitForServer (t , ctx ,
76
76
fmt .Sprintf ("http://%v/" , addr ),
77
77
"Go Documentation Server" ,
78
78
false )
79
79
}
80
80
81
- func waitForSearchReady (t * testing.T , ctx context.Context , cmd * exec.Cmd , addr string ) {
81
+ func waitForSearchReady (t * testing.T , ctx context.Context , _ * exec.Cmd , addr string ) {
82
82
waitForServer (t , ctx ,
83
83
fmt .Sprintf ("http://%v/search?q=FALLTHROUGH" , addr ),
84
84
"The list of tokens." ,
@@ -208,15 +208,15 @@ func testWeb(t *testing.T, x packagestest.Exporter, bin string, withIndex bool)
208
208
e := packagestest .Export (t , x , []packagestest.Module {
209
209
{
210
210
Name : "godoc.test/repo1" ,
211
- Files : map [string ]interface {} {
211
+ Files : map [string ]any {
212
212
"a/a.go" : `// Package a is a package in godoc.test/repo1.
213
213
package a; import _ "godoc.test/repo2/a"; const Name = "repo1a"` ,
214
214
"b/b.go" : `package b; const Name = "repo1b"` ,
215
215
},
216
216
},
217
217
{
218
218
Name : "godoc.test/repo2" ,
219
- Files : map [string ]interface {} {
219
+ Files : map [string ]any {
220
220
"a/a.go" : `package a; const Name = "repo2a"` ,
221
221
"b/b.go" : `package b; const Name = "repo2b"` ,
222
222
},
@@ -261,7 +261,7 @@ package a; import _ "godoc.test/repo2/a"; const Name = "repo1a"`,
261
261
if withIndex {
262
262
waitForSearchReady (t , ctx , cmd , addr )
263
263
} else {
264
- waitForServerReady (t , ctx , cmd , addr )
264
+ waitForServerReady (t , ctx , addr )
265
265
waitUntilScanComplete (t , ctx , addr )
266
266
}
267
267
0 commit comments