Skip to content

Commit 766d182

Browse files
erraggyclaude
andcommitted
fix: migrate synctest.Run to synctest.Test (Go 1.25 GA API)
In Go 1.25, synctest.Run was renamed to synctest.Test(t, func(t *testing.T)). The old Run function only exists behind GOEXPERIMENT=synctest as a migration bridge and will be removed in Go 1.26. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c69f5eb commit 766d182

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/mcpserver/input_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func TestSpecInput_ResolveCacheDisabled(t *testing.T) {
191191
}
192192

193193
func TestSpecCache_TTLExpiry(t *testing.T) {
194-
synctest.Run(func() {
194+
synctest.Test(t, func(t *testing.T) {
195195
c := &specCacheStore{
196196
entries: make(map[string]*cacheEntry),
197197
maxSize: 10,
@@ -224,7 +224,7 @@ func TestSpecCache_TTLNotExpired(t *testing.T) {
224224
}
225225

226226
func TestSpecCache_Sweep(t *testing.T) {
227-
synctest.Run(func() {
227+
synctest.Test(t, func(t *testing.T) {
228228
c := &specCacheStore{
229229
entries: make(map[string]*cacheEntry),
230230
maxSize: 10,
@@ -245,7 +245,7 @@ func TestSpecCache_Sweep(t *testing.T) {
245245
}
246246

247247
func TestSpecCache_Sweeper(t *testing.T) {
248-
synctest.Run(func() {
248+
synctest.Test(t, func(t *testing.T) {
249249
c := &specCacheStore{
250250
entries: make(map[string]*cacheEntry),
251251
maxSize: 10,

0 commit comments

Comments
 (0)