diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-20 22:21:28 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-20 22:21:28 -0700 |
| commit | f22acf38da970aa0d865a9978c9499dad01d235f (patch) | |
| tree | 6811766749c794afd9eb23e372cc1673f1bae41a /hotline/transaction_handlers_test.go | |
| parent | 7cd900d61edbd6d322db3cecb913adf574389320 (diff) | |
Convert hardcoded path separators to filepath.Join
Diffstat (limited to 'hotline/transaction_handlers_test.go')
| -rw-r--r-- | hotline/transaction_handlers_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hotline/transaction_handlers_test.go b/hotline/transaction_handlers_test.go index ebb4a95..0e2c949 100644 --- a/hotline/transaction_handlers_test.go +++ b/hotline/transaction_handlers_test.go @@ -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") }(), }, }, |