@@ -17,8 +17,6 @@ import (
17
17
"time"
18
18
19
19
"github.com/gin-gonic/gin"
20
- "github.com/golang/protobuf/ptypes"
21
- "github.com/golang/protobuf/ptypes/duration"
22
20
23
21
"nhooyr.io/websocket"
24
22
"nhooyr.io/websocket/internal/errd"
@@ -27,7 +25,6 @@ import (
27
25
"nhooyr.io/websocket/internal/test/xrand"
28
26
"nhooyr.io/websocket/internal/xsync"
29
27
"nhooyr.io/websocket/wsjson"
30
- "nhooyr.io/websocket/wspb"
31
28
)
32
29
33
30
func TestConn (t * testing.T ) {
@@ -267,24 +264,6 @@ func TestConn(t *testing.T) {
267
264
err = c1 .Close (websocket .StatusNormalClosure ,"" )
268
265
assert .Success (t ,err )
269
266
})
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
- })
288
267
}
289
268
290
269
func TestWasm (t * testing.T ) {