From 5686fc998359d7631d40e9d0b5f27537c8a4761d Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 30 Mar 2023 10:21:13 -0500 Subject: [PATCH] chore: skip chdir template push test on windows (#6890) See https://github.com/coder/coder/actions/runs/4565958214/jobs/8057842941 --- cli/templatepush_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/templatepush_test.go b/cli/templatepush_test.go index 56db595e83..d0efa32996 100644 --- a/cli/templatepush_test.go +++ b/cli/templatepush_test.go @@ -5,6 +5,7 @@ import ( "context" "os" "path/filepath" + "runtime" "testing" "github.com/google/uuid" @@ -158,6 +159,10 @@ func TestTemplatePush(t *testing.T) { // This test modifies the working directory. //nolint:paralleltest t.Run("UseWorkingDir", func(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip(`On Windows this test flakes with: "The process cannot access the file because it is being used by another process"`) + } + client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerDaemon: true}) user := coderdtest.CreateFirstUser(t, client) version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)