all: clean up Go 1.24 specific code. (#850)

This commit is contained in:
Maciej Kisiel 2026-03-20 12:28:56 +01:00 • committed by GitHub
commit ea161959d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,8 +2,6 @@
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
//go:build (go1.24 && goexperiment.synctest) || go1.25
package mcp
import (
@ -89,12 +87,9 @@ func TestServerConformance(t *testing.T) {
// By comparison, gopls has a complicated framework based on progress
// reporting and careful accounting to detect when all 'expected' work
// on the server is complete.
runSyncTest(t, func(t *testing.T) { runServerTest(t, test) })
// TODO: in 1.25, use the following instead:
// synctest.Test(t, func(t *testing.T) {
// runServerTest(t, test)
// })
synctest.Test(t, func(t *testing.T) {
runServerTest(t, test)
})
})
}
}