@@ -53,7 +53,7 @@ func TestWebsocketOriginCheck(t *testing.T) {
53
53
54
54
var (
55
55
srv = newTestServer ()
56
- httpsrv = httptest .NewServer (srv .WebsocketHandler ([]string {"http://example.com" }))
56
+ httpsrv = httptest .NewServer (srv .WebsocketHandler ([]string {"http://example.com" }, 0 ))
57
57
wsURL = "ws:" + strings .TrimPrefix (httpsrv .URL , "http:" )
58
58
)
59
59
defer srv .Stop ()
@@ -83,7 +83,7 @@ func TestWebsocketLargeCall(t *testing.T) {
83
83
84
84
var (
85
85
srv = newTestServer ()
86
- httpsrv = httptest .NewServer (srv .WebsocketHandler ([]string {"*" }))
86
+ httpsrv = httptest .NewServer (srv .WebsocketHandler ([]string {"*" }, 0 ))
87
87
wsURL = "ws:" + strings .TrimPrefix (httpsrv .URL , "http:" )
88
88
)
89
89
defer srv .Stop ()
@@ -119,7 +119,7 @@ func TestWebsocketLargeRead(t *testing.T) {
119
119
120
120
var (
121
121
srv = newTestServer ()
122
- httpsrv = httptest .NewServer (srv .WebsocketHandler ([]string {"*" }))
122
+ httpsrv = httptest .NewServer (srv .WebsocketHandler ([]string {"*" }, 0 ))
123
123
wsURL = "ws:" + strings .TrimPrefix (httpsrv .URL , "http:" )
124
124
)
125
125
defer srv .Stop ()
@@ -176,7 +176,7 @@ func TestWebsocketLargeRead(t *testing.T) {
176
176
func TestWebsocketPeerInfo (t * testing.T ) {
177
177
var (
178
178
s = newTestServer ()
179
- ts = httptest .NewServer (s .WebsocketHandler ([]string {"origin.example.com" }))
179
+ ts = httptest .NewServer (s .WebsocketHandler ([]string {"origin.example.com" }, 0 ))
180
180
tsurl = "ws:" + strings .TrimPrefix (ts .URL , "http:" )
181
181
)
182
182
defer s .Stop ()
@@ -260,7 +260,7 @@ func TestClientWebsocketPing(t *testing.T) {
260
260
func TestClientWebsocketLargeMessage (t * testing.T ) {
261
261
var (
262
262
srv = NewServer ()
263
- httpsrv = httptest .NewServer (srv .WebsocketHandler (nil ))
263
+ httpsrv = httptest .NewServer (srv .WebsocketHandler (nil , 0 ))
264
264
wsURL = "ws:" + strings .TrimPrefix (httpsrv .URL , "http:" )
265
265
)
266
266
defer srv .Stop ()
0 commit comments