mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
chore(enterprise/coderd): conditionally disable parallelism on windows (#16072)
Fixes https://github.com/coder/internal/issues/266
This commit is contained in:
@ -6,6 +6,7 @@ import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"sync/atomic"
|
||||
"testing"
|
||||
"time"
|
||||
@ -1398,8 +1399,12 @@ func TestTemplateDoesNotAllowUserAutostop(t *testing.T) {
|
||||
// real Terraform provisioner and validate that the workspace is created
|
||||
// successfully. The workspace itself does not specify any resources, and
|
||||
// this is fine.
|
||||
// nolint:paralleltest // this test tends to time out on windows runners
|
||||
// when run in parallel
|
||||
func TestWorkspaceTagsTerraform(t *testing.T) {
|
||||
t.Parallel()
|
||||
if runtime.GOOS != "windows" {
|
||||
t.Parallel()
|
||||
}
|
||||
|
||||
mainTfTemplate := `
|
||||
terraform {
|
||||
@ -1528,7 +1533,9 @@ func TestWorkspaceTagsTerraform(t *testing.T) {
|
||||
} {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
if runtime.GOOS != "windows" {
|
||||
t.Parallel()
|
||||
}
|
||||
ctx := testutil.Context(t, testutil.WaitSuperLong)
|
||||
|
||||
client, owner := coderdenttest.New(t, &coderdenttest.Options{
|
||||
|
Reference in New Issue
Block a user