Skip to content

Commit 0b3912f

Browse files
committed
accept_test: Fix @alixander's test
Not ideal but whatever, I'm going to rewrite all of this anyway.
1 parent 46f4112 commit 0b3912f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

accept_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package websocket
66
import (
77
"bufio"
88
"errors"
9-
"io"
109
"net"
1110
"net/http"
1211
"net/http/httptest"
@@ -149,8 +148,7 @@ func TestAccept(t *testing.T) {
149148

150149
server, _ := net.Pipe()
151150

152-
pr, pw := io.Pipe()
153-
rw := bufio.NewReadWriter(bufio.NewReader(pr), bufio.NewWriter(pw))
151+
rw := bufio.NewReadWriter(bufio.NewReader(server), bufio.NewWriter(server))
154152
newResponseWriter := func() http.ResponseWriter {
155153
return mockHijacker{
156154
ResponseWriter: httptest.NewRecorder(),

0 commit comments

Comments
 (0)