diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8998951d..96d2a611 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -23,6 +23,10 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 + - name: Switch Docker daemon mode to Linux + if: runner.os == 'Windows' + run: Start-Process $Env:ProgramFiles\Docker\Docker\DockerCli.exe -ArgumentList "-SwitchLinuxEngine" + - name: Setup run: make setup 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) {