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:
parent
9f1b8646bd
commit
159933cfa3
1 changed files with 40 additions and 10 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue