From 537b2c764e0807b3d0ba15e68e170aed28496e86 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 15 Nov 2024 17:50:35 -0800 Subject: [PATCH] Add a missing leaktest check. --- jrpc2_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jrpc2_test.go b/jrpc2_test.go index 539319a..1b5602e 100644 --- a/jrpc2_test.go +++ b/jrpc2_test.go @@ -1350,6 +1350,8 @@ func TestServer_newContext(t *testing.T) { } func TestClient_IsStopped(t *testing.T) { + defer leaktest.Check(t)() + clich := make(chan *jrpc2.Client, 1) loc := server.NewLocal(handler.Map{}, &server.LocalOptions{ Client: &jrpc2.ClientOptions{