Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Apr 23, 2024
1 parent b836026 commit 76145b5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions nbhttp/body_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ func TestBodyReader(t *testing.T) {
engine := NewEngine(Config{
BodyAllocator: mempool.NewAligned(),
})
b1 := make([]byte, 2049)
var (
b0 []byte
b1 = make([]byte, 2049)
b2 = make([]byte, 1132)
b3 = make([]byte, 11111)
)
rand.Read(b1)
b2 := make([]byte, 1132)
rand.Read(b2)
b3 := make([]byte, 11111)
rand.Read(b3)

allBytes := append(b1, b2...)
allBytes := append(b0, b1...)
allBytes = append(allBytes, b2...)
allBytes = append(allBytes, b3...)

newBR := func() *BodyReader {
Expand Down

0 comments on commit 76145b5

Please sign in to comment.