Skip to content

Commit

Permalink
use bytes join
Browse files Browse the repository at this point in the history
  • Loading branch information
purplenicole730 committed Nov 21, 2024
1 parent 4440034 commit a09687c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/billing_client_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package app

import (
"bytes"
"context"
"io"
"testing"
Expand Down Expand Up @@ -224,10 +225,7 @@ func TestBillingClient(t *testing.T) {
})

t.Run("GetInvoicePDF", func(t *testing.T) {
var expectedData []byte
expectedData = append(expectedData, chunk1...)
expectedData = append(expectedData, chunk2...)
expectedData = append(expectedData, chunk3...)
expectedData := bytes.Join(chunks, nil)
var count int
mockStream := &inject.BillingServiceGetInvoicePdfClient{
RecvFunc: func() (*pb.GetInvoicePdfResponse, error) {
Expand Down

0 comments on commit a09687c

Please sign in to comment.