chore: skip chdir template push test on windows (#6890)

See https://github.com/coder/coder/actions/runs/4565958214/jobs/8057842941
This commit is contained in:
Kyle Carberry
2023-03-30 10:21:13 -05:00
committed by GitHub
parent 401b9276ae
commit 5686fc9983

View File

@ -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)