diff options
author | Valery Piashchynski <[email protected]> | 2020-12-15 11:46:23 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-15 11:46:23 +0300 |
commit | 0652f9f507f3b7a09d0b7f259588c794bd20bc02 (patch) | |
tree | 1fb8db5006e0dece7b9e23a2d28615d533c0fb4e /plugins/http/tests | |
parent | 9b1c2648bdbf80bdf43fbe2c64d06cfbad1340fc (diff) |
Tests fixed
Diffstat (limited to 'plugins/http/tests')
-rw-r--r-- | plugins/http/tests/uploads_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http/tests/uploads_test.go b/plugins/http/tests/uploads_test.go index ee244c06..d36d4793 100644 --- a/plugins/http/tests/uploads_test.go +++ b/plugins/http/tests/uploads_test.go @@ -269,7 +269,7 @@ func TestHandler_Upload_File_NoTmpDir(t *testing.T) { assert.NoError(t, err) assert.Equal(t, 200, r.StatusCode) - fs := fileString(testFile, 5, "application/octet-stream") + fs := fileString(testFile, 6, "application/octet-stream") assert.Equal(t, `{"upload":`+fs+`}`, string(b)) } @@ -352,7 +352,7 @@ func TestHandler_Upload_File_Forbids(t *testing.T) { assert.NoError(t, err) assert.Equal(t, 200, r.StatusCode) - fs := fileString(testFile, 7, "application/octet-stream") + fs := fileString(testFile, 8, "application/octet-stream") assert.Equal(t, `{"upload":`+fs+`}`, string(b)) } |