Skip to content

Commit ac38512

Browse files
committed
wspb: Remove
The library we're currently using for protobufs is deprecated. Doesn't belong in the library core anyway. Closes #311 Updates #297
1 parent e305027 commit ac38512

File tree

2 files changed

+0
-94
lines changed

2 files changed

+0
-94
lines changed

Diff for: conn_test.go

-21
Original file line numberDiff line numberDiff line change
@@ -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

3330
func 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

290269
func TestWasm(t *testing.T) {

Diff for: wspb/wspb.go

-73
This file was deleted.

0 commit comments

Comments
 (0)