]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/transaction_handlers_test.go
Convert hardcoded path separators to filepath.Join
[rbdr/mobius] / hotline / transaction_handlers_test.go
index ebb4a95c303f7e43980e6e32ec4f798fff5df747..0e2c9499c62fcddac2a8ce4ae31dd98be25823e1 100644 (file)
@@ -7,6 +7,7 @@ import (
        "io/fs"
        "math/rand"
        "os"
+       "path/filepath"
        "strings"
        "testing"
        "time"
@@ -630,7 +631,7 @@ func TestHandleGetFileInfo(t *testing.T) {
                                                Config: &Config{
                                                        FileRoot: func() string {
                                                                path, _ := os.Getwd()
-                                                               return path + "/test/config/Files"
+                                                               return filepath.Join(path, "/test/config/Files")
                                                        }(),
                                                },
                                        },