Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e88289

Browse files
authored
chore(enterprise/coderd): conditionally disable parallelism on windows (#16072)
Fixescoder/internal#266
1 parentf4994ca commit5e88289

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
funcTestWorkspaceTagsTerraform(t*testing.T) {
1402-
t.Parallel()
1405+
ifruntime.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+
ifruntime.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)

[8]ページ先頭

©2009-2025 Movatter.jp