Skip to content

Commit

Permalink
chore: modify unit_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ViolaPioggia committed Feb 17, 2024
1 parent e49e29a commit ea81882
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions adaptor/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ package adaptor

import (
"context"
"fmt"
"io/ioutil"
"net/http"
"net/url"
Expand Down Expand Up @@ -478,16 +477,10 @@ func TestFile(t *testing.T) {
assert.NotEqual(t, req.Header.Get("Content-Type"), "application/x-www-form-urlencoded")

err := req.ParseForm()
if err != nil {
fmt.Println(err)
panic(err)
}
assert.Nil(t, err)

file, m, err := req.FormFile("file")
if err != nil {
fmt.Println(err)
panic(err)
}
assert.Nil(t, err)

assert.DeepEqual(t, m.Filename, "handler.go")

Expand Down

0 comments on commit ea81882

Please sign in to comment.