mcp: fix several goroutine leaks in tests (#494)

Fix some (but not all) goroutine leaks in tests. Others were nontrivial,
because they relate to streamable http.

For #489.
This commit is contained in:
Robert Findley 2025-09-18 14:24:45 -04:00 • committed by GitHub
commit 1696b595c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,6 +55,7 @@ func Example_prompts() {
if err != nil {
log.Fatal(err)
}
defer cs.Close()
// List the prompts.
for p, err := range cs.Prompts(ctx, nil) {