aboutsummaryrefslogtreecommitdiff
path: root/lib/websocket/client_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-03-15 21:39:04 +0700
committerShulhan <ms@kilabit.info>2019-03-17 02:12:43 +0700
commitd4a58da2becbb4ae46d2bbe57aa8bc2c99a0845e (patch)
tree371557ee3e3f3e5bbb4c06bed3807d11f5303e89 /lib/websocket/client_test.go
parent031ceb61f9a5a206a63160e78b8df80383d10b6b (diff)
downloadpakakeh.go-d4a58da2becbb4ae46d2bbe57aa8bc2c99a0845e.tar.xz
websocket: remove parameter randomMask from Frame.Pack
The decision to randomize mask is now based on whether the maskKey length is equal to 4 or not. If its 4 the maskKey will not be randomized.
Diffstat (limited to 'lib/websocket/client_test.go')
-rw-r--r--lib/websocket/client_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/websocket/client_test.go b/lib/websocket/client_test.go
index 2d80dfc7..ee73c8fc 100644
--- a/lib/websocket/client_test.go
+++ b/lib/websocket/client_test.go
@@ -419,7 +419,7 @@ func TestClientFragmentation(t *testing.T) {
wg.Add(1)
for x := 0; x < len(c.frames); x++ {
- req := c.frames[x].Pack(true)
+ req := c.frames[x].Pack()
err := testClient.send(req)
if err != nil {
@@ -500,7 +500,7 @@ func TestClientFragmentation2(t *testing.T) {
wg.Add(2)
for x := 0; x < len(frames); x++ {
- req := frames[x].Pack(true)
+ req := frames[x].Pack()
err := testClient.send(req)
if err != nil {