summaryrefslogtreecommitdiff
path: root/tests/plugins/http/uploads_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-03 16:59:10 +0300
committerValery Piashchynski <[email protected]>2021-06-03 16:59:10 +0300
commit063703e96e5f7cee59139e98d446d5577fb5c224 (patch)
treee669d08cbbafaa5d809bfb870e874d3de4683dad /tests/plugins/http/uploads_test.go
parent62bbde7936109d18bf1f727974719804dad4c105 (diff)
- Add internal_error_code option
- Update tests Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/http/uploads_test.go')
-rw-r--r--tests/plugins/http/uploads_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/plugins/http/uploads_test.go b/tests/plugins/http/uploads_test.go
index 903a930a..df696668 100644
--- a/tests/plugins/http/uploads_test.go
+++ b/tests/plugins/http/uploads_test.go
@@ -40,7 +40,7 @@ func TestHandler_Upload_File(t *testing.T) {
t.Fatal(err)
}
- h, err := handler.NewHandler(1024, config.Uploads{
+ h, err := handler.NewHandler(1024, 500, config.Uploads{
Dir: os.TempDir(),
Forbid: []string{},
}, nil, pool)
@@ -123,7 +123,7 @@ func TestHandler_Upload_NestedFile(t *testing.T) {
t.Fatal(err)
}
- h, err := handler.NewHandler(1024, config.Uploads{
+ h, err := handler.NewHandler(1024, 500, config.Uploads{
Dir: os.TempDir(),
Forbid: []string{},
}, nil, pool)
@@ -206,7 +206,7 @@ func TestHandler_Upload_File_NoTmpDir(t *testing.T) {
t.Fatal(err)
}
- h, err := handler.NewHandler(1024, config.Uploads{
+ h, err := handler.NewHandler(1024, 500, config.Uploads{
Dir: "-------",
Forbid: []string{},
}, nil, pool)
@@ -289,7 +289,7 @@ func TestHandler_Upload_File_Forbids(t *testing.T) {
t.Fatal(err)
}
- h, err := handler.NewHandler(1024, config.Uploads{
+ h, err := handler.NewHandler(1024, 500, config.Uploads{
Dir: os.TempDir(),
Forbid: []string{".go"},
}, nil, pool)