We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent58aa736 commit2c63b32Copy full SHA for 2c63b32
coderd/httpmw/logger_internal_test.go
@@ -99,7 +99,6 @@ func TestLoggerMiddleware_WebSocket(t *testing.T) {
99
varwg sync.WaitGroup
100
// Create a test handler to simulate a WebSocket connection
101
testHandler:=http.HandlerFunc(func(rw http.ResponseWriter,r*http.Request) {
102
-
103
conn,err:=websocket.Accept(rw,r,nil)
104
iferr!=nil {
105
t.Errorf("failed to accept websocket: %v",err)
@@ -111,7 +110,6 @@ func TestLoggerMiddleware_WebSocket(t *testing.T) {
111
110
// Send a couple of messages for testing
112
_=conn.Write(ctx,websocket.MessageText, []byte("ping"))
113
_=conn.Write(ctx,websocket.MessageText, []byte("pong"))
114
115
})
116
117
// Wrap the test handler with the Logger middleware