diff --git a/instrumentation/github.com/gorilla/mux/otelmux/test/mux_test.go b/instrumentation/github.com/gorilla/mux/otelmux/test/mux_test.go index 8fe99ebc6d4..e60d04f0068 100644 --- a/instrumentation/github.com/gorilla/mux/otelmux/test/mux_test.go +++ b/instrumentation/github.com/gorilla/mux/otelmux/test/mux_test.go @@ -66,6 +66,10 @@ func (m *mockHijacker) Hijack() (net.Conn, *bufio.ReadWriter, error) { return conn, bufio.NewReadWriter(bufio.NewReader(rw), bufio.NewWriter(rw)), nil } +type mockNonHijacker struct { + http.ResponseWriter +} + func TestRecordingResponseWriterHijack(t *testing.T) { mockWriter := &mockHijacker{httptest.NewRecorder()} recWriter := &recordingResponseWriter{writer: mockWriter}