Skip to content

Commit

Permalink
chore: fix format issue
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang committed Sep 26, 2024
1 parent 8d894b0 commit 97b9593
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bfe_http/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ import (
"reflect"
"strings"
"testing"
)

import (
"github.com/bfenetworks/bfe/bfe_bufio"
)

Expand Down Expand Up @@ -397,7 +395,7 @@ func testMissingFile(t *testing.T, req *Request) {
t.Errorf("FormFile file = %v, want nil", f)
}
if fh != nil {
t.Errorf("FormFile file header = %q, want nil", fh)
t.Errorf("FormFile file header = %v, want nil", fh)
}
if err != ErrMissingFile {
t.Errorf("FormFile err = %q, want ErrMissingFile", err)
Expand Down Expand Up @@ -497,7 +495,7 @@ Content-Disposition: form-data; name="textb"
`

func benchmarkReadRequest(b *testing.B, request string) {
request += "\n" // final \n
request += "\n" // final \n
request = strings.ReplaceAll(request, "\n", "\r\n") // expand \n to \r\n
b.SetBytes(int64(len(request)))
r := bfe_bufio.NewReader(&infiniteReader{buf: []byte(request)})
Expand Down

0 comments on commit 97b9593

Please sign in to comment.