From befcafdb8f662d62c9fc65142a5f1c5fb7f69798 Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Wed, 14 Feb 2024 09:39:30 -0600 Subject: [PATCH] test: fixup for Windows --- mock_client_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mock_client_test.go b/mock_client_test.go index c940e2b3..e54f0ac0 100644 --- a/mock_client_test.go +++ b/mock_client_test.go @@ -8,6 +8,7 @@ import ( "errors" "io" "io/fs" + "os" "strings" "testing" @@ -41,7 +42,9 @@ func TestMockClient(t *testing.T) { paths, err := client.ListFiles("/") require.NoError(t, err) require.Len(t, paths, 1) - require.Equal(t, "/exists.txt", paths[0]) + + expected := string(os.PathSeparator) + "exists.txt" + require.Equal(t, expected, paths[0]) } func TestMockClient_ListAndOpenFiles(t *testing.T) {