mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01:00
minor: #1516
Former-commit-id: 7b7d1a8becb5dc8e5a0dc54bb76d8ec723555e01
This commit is contained in:
parent
fb4dcf3134
commit
3f1680a1d1
|
@ -1,7 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
@ -20,7 +19,7 @@ func TestUploadFiles(t *testing.T) {
|
||||||
defer fh.Close()
|
defer fh.Close()
|
||||||
|
|
||||||
e.POST("/upload").WithMultipart().WithFile("files", "main.go", fh).
|
e.POST("/upload").WithMultipart().WithFile("files", "main.go", fh).
|
||||||
Expect().Status(http.StatusOK)
|
Expect().Status(httptest.StatusOK)
|
||||||
|
|
||||||
f, err := os.Open("uploads/main.go")
|
f, err := os.Open("uploads/main.go")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user