mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user