summaryrefslogtreecommitdiff
path: root/internal/apimodule/fileserver
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-04-21 18:22:31 +0200
committerLibravatar GitHub <noreply@github.com>2021-04-21 18:22:31 +0200
commit9616f46424363adbc124da52c6728ca047506403 (patch)
treeff42bcf78a846e694e9f5716fc2b9ce7055593e9 /internal/apimodule/fileserver
parentlinting + organizing (diff)
downloadgotosocial-9616f46424363adbc124da52c6728ca047506403.tar.xz
make boosts work woo (#12)
Diffstat (limited to 'internal/apimodule/fileserver')
-rw-r--r--internal/apimodule/fileserver/fileserver.go2
-rw-r--r--internal/apimodule/fileserver/servefile_test.go (renamed from internal/apimodule/fileserver/test/servefile_test.go)4
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/apimodule/fileserver/fileserver.go b/internal/apimodule/fileserver/fileserver.go
index 7651c8cc1..55b8781b6 100644
--- a/internal/apimodule/fileserver/fileserver.go
+++ b/internal/apimodule/fileserver/fileserver.go
@@ -39,7 +39,7 @@ const (
// MediaSizeKey is the url key for the desired media size--original/small/static
MediaSizeKey = "media_size"
// FileNameKey is the actual filename being sought. Will usually be a UUID then something like .jpeg
- FileNameKey = "file_name"
+ FileNameKey = "file_name"
)
// FileServer implements the RESTAPIModule interface.
diff --git a/internal/apimodule/fileserver/test/servefile_test.go b/internal/apimodule/fileserver/servefile_test.go
index 516e3528c..dbe979fb7 100644
--- a/internal/apimodule/fileserver/test/servefile_test.go
+++ b/internal/apimodule/fileserver/servefile_test.go
@@ -16,7 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-package test
+package fileserver_test
import (
"context"
@@ -90,7 +90,7 @@ func (suite *ServeFileTestSuite) TearDownSuite() {
func (suite *ServeFileTestSuite) SetupTest() {
testrig.StandardDBSetup(suite.db)
- testrig.StandardStorageSetup(suite.storage, "../../../../testrig/media")
+ testrig.StandardStorageSetup(suite.storage, "../../../testrig/media")
suite.testTokens = testrig.NewTestTokens()
suite.testClients = testrig.NewTestClients()
suite.testApplications = testrig.NewTestApplications()