From cc5bffb965015bddbd1cde4fe809bd62abe19ef5 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Thu, 6 Jun 2024 19:04:43 -0700 Subject: [PATCH] Add lintignore --- p2p/http/libp2phttp_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/http/libp2phttp_test.go b/p2p/http/libp2phttp_test.go index 960fee632c..e7e66bb4cd 100644 --- a/p2p/http/libp2phttp_test.go +++ b/p2p/http/libp2phttp_test.go @@ -731,6 +731,7 @@ func TestResponseWriterShouldNotHaveCancelledContext(t *testing.T) { closeNotifyCh := make(chan bool, 1) httpHost.SetHTTPHandlerAtPath("/test", "/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // Legacy code uses this to check if the connection was closed + //lint:ignore SA1019 This is a test to assert we do the right thing since Go HTTP stdlib depends on this. ch := w.(http.CloseNotifier).CloseNotify() select { case <-ch: