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:
parent
49d45a8097
commit
1696b595c6
1 changed files with 43 additions and 22 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue