Skip to content

Commit 22e3257

Browse files
authored
Fix format issue in bfe_http/request_test.go (#1163)
Signed-off-by: cuishuang <imcusg@gmail.com>
1 parent a5415af commit 22e3257

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bfe_http/request_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ import (
3030
"reflect"
3131
"strings"
3232
"testing"
33-
)
3433

35-
import (
3634
"github.com/bfenetworks/bfe/bfe_bufio"
3735
)
3836

@@ -397,7 +395,7 @@ func testMissingFile(t *testing.T, req *Request) {
397395
t.Errorf("FormFile file = %v, want nil", f)
398396
}
399397
if fh != nil {
400-
t.Errorf("FormFile file header = %q, want nil", fh)
398+
t.Errorf("FormFile file header = %v, want nil", fh)
401399
}
402400
if err != ErrMissingFile {
403401
t.Errorf("FormFile err = %q, want ErrMissingFile", err)
@@ -497,7 +495,7 @@ Content-Disposition: form-data; name="textb"
497495
`
498496

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

0 commit comments

Comments
 (0)