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 | |
parent | 9b1c2648bdbf80bdf43fbe2c64d06cfbad1340fc (diff) |
Tests fixed
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml | 2 | ||||
-rw-r--r-- | plugins/http/tests/uploads_test.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml b/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml index df02c043..3dc5f9df 100644 --- a/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml +++ b/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml @@ -1,5 +1,5 @@ server: - command: "php psr-worker.php" + command: "php ../../../tests/psr-worker.php" user: "" group: "" env: 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)) } |