mcp: speed up TestCommandTransportDuration

At 7s, this test was 70% of our test execution time on my computer.
Speed it up by mutating the defaultTerminateDuration for the purposes of
the test.

Also update our test workflow to use go1.25, now that it's out.
This commit is contained in:
Rob Findley 2025-09-12 14:42:07 +00:00 • committed by Robert Findley
commit 159933cfa3

View file

@ -13,9 +13,7 @@ import (
"time"
)
const (
defaultTerminateDuration = 5 * time.Second
)
var defaultTerminateDuration = 5 * time.Second // mutable for testing
// A CommandTransport is a [Transport] that runs a command and communicates
// with it over stdin/stdout, using newline-delimited JSON.