Skip to content

Commit 5e88289

Browse files
authored
chore(enterprise/coderd): conditionally disable parallelism on windows (#16072)
Fixes coder/internal#266
1 parent f4994ca commit 5e88289

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

enterprise/coderd/workspaces_test.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"database/sql"
77
"fmt"
88
"net/http"
9+
"runtime"
910
"sync/atomic"
1011
"testing"
1112
"time"
@@ -1398,8 +1399,12 @@ func TestTemplateDoesNotAllowUserAutostop(t *testing.T) {
13981399
// real Terraform provisioner and validate that the workspace is created
13991400
// successfully. The workspace itself does not specify any resources, and
14001401
// this is fine.
1402+
// nolint:paralleltest // this test tends to time out on windows runners
1403+
// when run in parallel
14011404
func TestWorkspaceTagsTerraform(t *testing.T) {
1402-
t.Parallel()
1405+
if runtime.GOOS != "windows" {
1406+
t.Parallel()
1407+
}
14031408

14041409
mainTfTemplate := `
14051410
terraform {
@@ -1528,7 +1533,9 @@ func TestWorkspaceTagsTerraform(t *testing.T) {
15281533
} {
15291534
tc := tc
15301535
t.Run(tc.name, func(t *testing.T) {
1531-
t.Parallel()
1536+
if runtime.GOOS != "windows" {
1537+
t.Parallel()
1538+
}
15321539
ctx := testutil.Context(t, testutil.WaitSuperLong)
15331540

15341541
client, owner := coderdenttest.New(t, &coderdenttest.Options{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy