Skip to content

Commit

Permalink
testing: Grow() results in header size increases
Browse files Browse the repository at this point in the history
Which will make reserved header size incorrect.
  • Loading branch information
ZekeLu authored and gobwas committed Apr 25, 2021
1 parent 13dfaa9 commit 5377ba6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wsutil/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ func TestWriterGrow(t *testing.T) {
name: "buffer grow leads to its reduce",
dataSize: 20,
},
{
name: "header size increases",
dataSize: int(len16) + 10,
},
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
Expand Down

0 comments on commit 5377ba6

Please sign in to comment.