diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/file_test.go | 2 | ||||
-rw-r--r-- | api/user_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/file_test.go b/api/file_test.go index 40534d724..59adc8a71 100644 --- a/api/file_test.go +++ b/api/file_test.go @@ -805,7 +805,7 @@ func TestGetInfoForFilename(t *testing.T) { } func readTestFile(name string) ([]byte, error) { - path := utils.FindDir("tests") + path, _ := utils.FindDir("tests") file, err := os.Open(path + "/" + name) if err != nil { return nil, err diff --git a/api/user_test.go b/api/user_test.go index d9234d356..484cf6495 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -747,7 +747,7 @@ func TestUserUploadProfileImage(t *testing.T) { t.Fatal(err) } - path := utils.FindDir("tests") + path, _ := utils.FindDir("tests") file, err := os.Open(path + "/test.png") if err != nil { t.Fatal(err) |