Commit e43e7a9 1 parent d519340 commit e43e7a9 Copy full SHA for e43e7a9
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
"net/http"
7
7
"strings"
8
8
"testing"
9
-
9
+
10
10
"github.com/stretchr/testify/require"
11
11
)
12
12
@@ -15,7 +15,7 @@ func TestMockHTTPServer(t *testing.T) {
15
15
handler := http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
16
16
w .Header ().Set ("Content-Type" , "application/json" )
17
17
w .WriteHeader (http .StatusOK )
18
- // In real request handling, the error is typically ignored as it's a disconnect which HTTP server handles
18
+ // in real request handling, the error is typically ignored as it's a disconnect which HTTP server handles
19
19
// ResponseWriter interface doesn't have a way to check for errors in tests
20
20
// nolint:errcheck // http.ResponseWriter errors are handled by the HTTP server
21
21
w .Write ([]byte (`{"status":"ok"}` ))
You can’t perform that action at this time.
0 commit comments