summaryrefslogtreecommitdiffstats
path: root/api/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/user_test.go')
-rw-r--r--api/user_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/user_test.go b/api/user_test.go
index f65d7c45b..518379305 100644
--- a/api/user_test.go
+++ b/api/user_test.go
@@ -12,6 +12,7 @@ import (
"mime/multipart"
"net/http"
"os"
+ "path/filepath"
"strings"
"testing"
"time"
@@ -778,7 +779,7 @@ func TestUserUploadProfileImage(t *testing.T) {
}
path, _ := utils.FindDir("tests")
- file, err := os.Open(path + "/test.png")
+ file, err := os.Open(filepath.Join(path, "test.png"))
if err != nil {
t.Fatal(err)
}