@@ -17,8 +17,6 @@ import (
1717 "time"
1818
1919 "github.com/gin-gonic/gin"
20- "github.com/golang/protobuf/ptypes"
21- "github.com/golang/protobuf/ptypes/duration"
2220
2321 "nhooyr.io/websocket"
2422 "nhooyr.io/websocket/internal/errd"
@@ -27,7 +25,6 @@ import (
2725 "nhooyr.io/websocket/internal/test/xrand"
2826 "nhooyr.io/websocket/internal/xsync"
2927 "nhooyr.io/websocket/wsjson"
30- "nhooyr.io/websocket/wspb"
3128)
3229
3330func TestConn (t * testing.T ) {
@@ -267,24 +264,6 @@ func TestConn(t *testing.T) {
267264 err = c1 .Close (websocket .StatusNormalClosure , "" )
268265 assert .Success (t , err )
269266 })
270-
271- t .Run ("wspb" , func (t * testing.T ) {
272- tt , c1 , c2 := newConnTest (t , nil , nil )
273-
274- tt .goEchoLoop (c2 )
275-
276- exp := ptypes .DurationProto (100 )
277- err := wspb .Write (tt .ctx , c1 , exp )
278- assert .Success (t , err )
279-
280- act := & duration.Duration {}
281- err = wspb .Read (tt .ctx , c1 , act )
282- assert .Success (t , err )
283- assert .Equal (t , "read msg" , exp , act )
284-
285- err = c1 .Close (websocket .StatusNormalClosure , "" )
286- assert .Success (t , err )
287- })
288267}
289268
290269func TestWasm (t * testing.T ) {
0 commit comments