From f22acf38da970aa0d865a9978c9499dad01d235f Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Mon, 20 Jun 2022 22:21:28 -0700 Subject: Convert hardcoded path separators to filepath.Join --- hotline/transaction_handlers_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hotline/transaction_handlers_test.go') 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") }(), }, }, -- cgit