Skip to content

Commit 856fa4f

Browse files
fix: suppress errcheck violations on pipe Close() in jsonrpc_test
1 parent c0bc8c4 commit 856fa4f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

internal/mcp/jsonrpc_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ func runServer(t *testing.T, s *Server) (
6464
}
6565

6666
closePipe = func() {
67-
pw.Close()
67+
_ = pw.Close()
6868
}
6969

7070
cleanup = func() {
7171
cancel()
72-
pw.Close()
72+
_ = pw.Close()
7373
// Drain done channel.
7474
select {
7575
case <-done:
@@ -224,8 +224,8 @@ func TestRun_Notification(t *testing.T) {
224224

225225
// Clean up.
226226
cancel()
227-
pw.Close()
228-
sr.Close()
227+
_ = pw.Close()
228+
_ = sr.Close()
229229
}
230230

231231
// TestRun_ContextCancel verifies that cancelling the context causes Run to
@@ -244,7 +244,7 @@ func TestRun_ContextCancel(t *testing.T) {
244244

245245
// Cancel the context and expect Run to return nil.
246246
cancel()
247-
pw.Close()
247+
_ = pw.Close()
248248

249249
select {
250250
case err := <-done:
@@ -272,7 +272,7 @@ func TestRun_EOFClean(t *testing.T) {
272272
}()
273273

274274
// Close the write side to signal EOF.
275-
pw.Close()
275+
_ = pw.Close()
276276

277277
select {
278278
case err := <-done:

0 commit comments

Comments
 (0)