Skip to content

Commit 5686fc9

Browse files
authored
chore: skip chdir template push test on windows (coder#6890)
See https://github.com/coder/coder/actions/runs/4565958214/jobs/8057842941
1 parent 401b927 commit 5686fc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cli/templatepush_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"context"
66
"os"
77
"path/filepath"
8+
"runtime"
89
"testing"
910

1011
"github.com/google/uuid"
@@ -158,6 +159,10 @@ func TestTemplatePush(t *testing.T) {
158159
// This test modifies the working directory.
159160
//nolint:paralleltest
160161
t.Run("UseWorkingDir", func(t *testing.T) {
162+
if runtime.GOOS == "windows" {
163+
t.Skip(`On Windows this test flakes with: "The process cannot access the file because it is being used by another process"`)
164+
}
165+
161166
client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerDaemon: true})
162167
user := coderdtest.CreateFirstUser(t, client)
163168
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)

0 commit comments

Comments
 (0)