Skip to content

Commit 4afd149

Browse files
committed
chore: nits
1 parent 2faad08 commit 4afd149

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coderd/mcp/mcp_e2e_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,13 +1240,13 @@ func TestMCPHTTP_E2E_ChatGPTEndpoint(t *testing.T) {
12401240
"Authorization": "Bearer " + coderClient.SessionToken(),
12411241
}))
12421242
require.NoError(t, err)
1243-
defer func() {
1243+
t.Cleanup(func() {
12441244
if closeErr := mcpClient.Close(); closeErr != nil {
12451245
t.Logf("Failed to close MCP client: %v", closeErr)
12461246
}
1247-
}()
1247+
})
12481248

1249-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
1249+
ctx, cancel := context.WithTimeout(t.Context(), testutil.WaitLong)
12501250
defer cancel()
12511251

12521252
// Start client

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy