Skip to content

Commit f3b5d93

Browse files
committed
mcp: fix failing unit test
1 parent a69f3c0 commit f3b5d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/streamable_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func TestStreamableTransports(t *testing.T) {
103103
}
104104
handler.ServeHTTP(w, r)
105105
}))
106-
defer httpServer.Close()
106+
t.Cleanup(func() { httpServer.Close() })
107107

108108
// Create a client and connect it to the server using our StreamableClientTransport.
109109
// Check that all requests honor a custom client.

0 commit comments

Comments
 (0)