Skip to content

Commit

Permalink
Add lintignore
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Jun 7, 2024
1 parent f11a9c3 commit cc5bffb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/http/libp2phttp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cc5bffb

Please sign in to comment.