Skip to content

Commit e81f901

Browse files
GooglomGulom Alimov
and
Gulom Alimov
authored
try disabling t.Parallel() (#5269)
Co-authored-by: Gulom Alimov <[email protected]>
1 parent 15bf4da commit e81f901

16 files changed

+47
-47
lines changed

integration/integration_cnb_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func setupDockerRegistry(t *testing.T, ctx context.Context) testcontainers.Conta
3636
}
3737

3838
func TestCNBIntegrationNPMProject(t *testing.T) {
39-
t.Parallel()
39+
// t.Parallel()
4040
ctx := context.Background()
4141
registryContainer := setupDockerRegistry(t, ctx)
4242
defer registryContainer.Terminate(ctx)
@@ -86,7 +86,7 @@ func TestCNBIntegrationNPMProject(t *testing.T) {
8686
}
8787

8888
func TestCNBIntegrationProjectDescriptor(t *testing.T) {
89-
t.Parallel()
89+
// t.Parallel()
9090
ctx := context.Background()
9191
registryContainer := setupDockerRegistry(t, ctx)
9292
defer registryContainer.Terminate(ctx)
@@ -116,7 +116,7 @@ func TestCNBIntegrationProjectDescriptor(t *testing.T) {
116116
container.terminate(t)
117117
}
118118
func TestCNBIntegrationBuildSummary(t *testing.T) {
119-
t.Parallel()
119+
// t.Parallel()
120120
ctx := context.Background()
121121
registryContainer := setupDockerRegistry(t, ctx)
122122
defer registryContainer.Terminate(ctx)
@@ -141,7 +141,7 @@ func TestCNBIntegrationBuildSummary(t *testing.T) {
141141
}
142142

143143
func TestCNBIntegrationZipPath(t *testing.T) {
144-
t.Parallel()
144+
// t.Parallel()
145145
ctx := context.Background()
146146
registryContainer := setupDockerRegistry(t, ctx)
147147
defer registryContainer.Terminate(ctx)
@@ -170,7 +170,7 @@ func TestCNBIntegrationZipPath(t *testing.T) {
170170
}
171171

172172
func TestCNBIntegrationNonZipPath(t *testing.T) {
173-
t.Parallel()
173+
// t.Parallel()
174174
ctx := context.Background()
175175
registryContainer := setupDockerRegistry(t, ctx)
176176
defer registryContainer.Terminate(ctx)
@@ -190,7 +190,7 @@ func TestCNBIntegrationNonZipPath(t *testing.T) {
190190
}
191191

192192
func TestCNBIntegrationNPMCustomBuildpacksFullProject(t *testing.T) {
193-
t.Parallel()
193+
// t.Parallel()
194194
ctx := context.Background()
195195
registryContainer := setupDockerRegistry(t, ctx)
196196
defer registryContainer.Terminate(ctx)
@@ -218,7 +218,7 @@ func TestCNBIntegrationNPMCustomBuildpacksFullProject(t *testing.T) {
218218
}
219219

220220
func TestCNBIntegrationNPMCustomBuildpacksBuildpacklessProject(t *testing.T) {
221-
t.Parallel()
221+
// t.Parallel()
222222
ctx := context.Background()
223223
registryContainer := setupDockerRegistry(t, ctx)
224224
defer registryContainer.Terminate(ctx)
@@ -245,7 +245,7 @@ func TestCNBIntegrationNPMCustomBuildpacksBuildpacklessProject(t *testing.T) {
245245
}
246246

247247
func TestCNBIntegrationWrongBuilderProject(t *testing.T) {
248-
t.Parallel()
248+
// t.Parallel()
249249
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
250250
Image: "nginx:latest",
251251
TestDir: []string{"testdata", "TestMtaIntegration", "npm"},
@@ -259,7 +259,7 @@ func TestCNBIntegrationWrongBuilderProject(t *testing.T) {
259259
}
260260

261261
func TestCNBIntegrationBindings(t *testing.T) {
262-
t.Parallel()
262+
// t.Parallel()
263263
ctx := context.Background()
264264
registryContainer := setupDockerRegistry(t, ctx)
265265
defer registryContainer.Terminate(ctx)
@@ -287,7 +287,7 @@ func TestCNBIntegrationBindings(t *testing.T) {
287287
}
288288

289289
func TestCNBIntegrationMultiImage(t *testing.T) {
290-
t.Parallel()
290+
// t.Parallel()
291291
ctx := context.Background()
292292
registryContainer := setupDockerRegistry(t, ctx)
293293
defer registryContainer.Terminate(ctx)
@@ -321,7 +321,7 @@ func TestCNBIntegrationMultiImage(t *testing.T) {
321321
}
322322

323323
func TestCNBIntegrationPreserveFiles(t *testing.T) {
324-
t.Parallel()
324+
// t.Parallel()
325325
ctx := context.Background()
326326
registryContainer := setupDockerRegistry(t, ctx)
327327
defer registryContainer.Terminate(ctx)
@@ -341,7 +341,7 @@ func TestCNBIntegrationPreserveFiles(t *testing.T) {
341341
}
342342

343343
func TestCNBIntegrationPreserveFilesIgnored(t *testing.T) {
344-
t.Parallel()
344+
// t.Parallel()
345345
ctx := context.Background()
346346
registryContainer := setupDockerRegistry(t, ctx)
347347
defer registryContainer.Terminate(ctx)
@@ -360,7 +360,7 @@ func TestCNBIntegrationPreserveFilesIgnored(t *testing.T) {
360360
}
361361

362362
func TestCNBIntegrationPrePostBuildpacks(t *testing.T) {
363-
t.Parallel()
363+
// t.Parallel()
364364
ctx := context.Background()
365365
registryContainer := setupDockerRegistry(t, ctx)
366366
defer registryContainer.Terminate(ctx)

integration/integration_gauge_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ cd /test
8888
}
8989

9090
func TestGaugeIntegrationJava(t *testing.T) {
91-
t.Parallel()
91+
// t.Parallel()
9292
runTest(t, "java")
9393
}
9494

9595
func TestGaugeIntegrationJS(t *testing.T) {
96-
t.Parallel()
96+
// t.Parallel()
9797
runTest(t, "js")
9898
}

integration/integration_gcs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
)
2727

2828
func TestGCSIntegrationClient(t *testing.T) {
29-
t.Parallel()
29+
// t.Parallel()
3030
ctx := context.Background()
3131
testdataPath, err := filepath.Abs("testdata/TestGCSIntegration")
3232
assert.NoError(t, err)

integration/integration_github_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
)
2121

2222
func TestGitHubIntegrationPiperPublishRelease(t *testing.T) {
23-
t.Parallel()
23+
// t.Parallel()
2424
token := os.Getenv("PIPER_INTEGRATION_GITHUB_TOKEN")
2525
if len(token) == 0 {
2626
t.Fatal("No GitHub token maintained")
@@ -95,7 +95,7 @@ func TestGitHubIntegrationPiperPublishRelease(t *testing.T) {
9595
}
9696

9797
func TestGitHubIntegrationFetchCommitStatistics(t *testing.T) {
98-
t.Parallel()
98+
// t.Parallel()
9999
// prepare
100100
token := os.Getenv("PIPER_INTEGRATION_GITHUB_TOKEN")
101101
if len(token) == 0 {

integration/integration_golang_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
// In this test the piper command golangBuild performs testing, BOM file creation and building a project with entry point in the cmd/server/server.go
1616
// The configuration for golangBuild can be found in testdata/TestGolangIntegration/golang-project1/.pipeline/config.yml
1717
func TestGolangIntegrationBuildProject1(t *testing.T) {
18-
t.Parallel()
18+
// t.Parallel()
1919

2020
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
2121
Image: "golang:1",
@@ -51,7 +51,7 @@ func TestGolangIntegrationBuildProject1(t *testing.T) {
5151

5252
// This test extends TestGolangIntegrationBuildProject1 with multi-package build
5353
func TestGolangIntegrationBuildProject1MultiPackage(t *testing.T) {
54-
t.Parallel()
54+
// t.Parallel()
5555

5656
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
5757
Image: "golang:1",
@@ -88,7 +88,7 @@ func TestGolangIntegrationBuildProject1MultiPackage(t *testing.T) {
8888
// In this test, the piper golangBuild command only builds the project with the entry point at the project root.
8989
// The configuration for golangBuild can be found in testdata/TestGolangIntegration/golang-project2/.pipeline/config.yml
9090
func TestGolangIntegrationBuildProject2(t *testing.T) {
91-
t.Parallel()
91+
// t.Parallel()
9292

9393
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
9494
Image: "golang:1",

integration/integration_gradle_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
)
2020

2121
func TestGradleIntegrationExecuteBuildJavaProjectBOMCreationUsingWrapper(t *testing.T) {
22-
t.Parallel()
22+
// t.Parallel()
2323
ctx := context.Background()
2424

2525
pwd, err := os.Getwd()
@@ -92,7 +92,7 @@ ls -l ./build/reports/ >files-list.txt 2>&1
9292
}
9393

9494
func TestGradleIntegrationExecuteBuildJavaProjectWithBomPlugin(t *testing.T) {
95-
t.Parallel()
95+
// t.Parallel()
9696
ctx := context.Background()
9797

9898
pwd, err := os.Getwd()

integration/integration_influx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
func TestInfluxIntegrationWriteMetrics(t *testing.T) {
25-
t.Parallel()
25+
// t.Parallel()
2626
ctx := context.Background()
2727
const authToken = "influx-token"
2828
const username = "username"

integration/integration_karma_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
func TestKarmaIntegration(t *testing.T) {
2121
t.Skip("Skip failing test for now")
2222

23-
t.Parallel()
23+
// t.Parallel()
2424
ctx := context.Background()
2525

2626
pwd, err := os.Getwd()

integration/integration_maven_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
func TestMavenIntegrationBuildCloudSdkSpringProject(t *testing.T) {
14-
t.Parallel()
14+
// t.Parallel()
1515
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
1616
Image: "maven:3-openjdk-8-slim",
1717
User: "1000",
@@ -46,7 +46,7 @@ func TestMavenIntegrationBuildCloudSdkSpringProject(t *testing.T) {
4646
}
4747

4848
func TestMavenIntegrationBuildCloudSdkTomeeProject(t *testing.T) {
49-
t.Parallel()
49+
// t.Parallel()
5050
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
5151
Image: "maven:3-openjdk-8-slim",
5252
User: "1000",

integration/integration_mta_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
func TestMTAIntegrationMavenProject(t *testing.T) {
14-
t.Parallel()
14+
// t.Parallel()
1515
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
1616
Image: "devxci/mbtci-java11-node14",
1717
User: "root",
@@ -33,7 +33,7 @@ func TestMTAIntegrationMavenProject(t *testing.T) {
3333
}
3434

3535
func TestMTAIntegrationMavenSpringProject(t *testing.T) {
36-
t.Parallel()
36+
// t.Parallel()
3737
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
3838
Image: "devxci/mbtci-java11-node14",
3939
User: "root",
@@ -54,7 +54,7 @@ func TestMTAIntegrationMavenSpringProject(t *testing.T) {
5454
}
5555

5656
func TestMTAIntegrationNPMProject(t *testing.T) {
57-
t.Parallel()
57+
// t.Parallel()
5858
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
5959
Image: "devxci/mbtci-java11-node14",
6060
User: "root",
@@ -71,7 +71,7 @@ func TestMTAIntegrationNPMProject(t *testing.T) {
7171
}
7272

7373
func TestMTAIntegrationNPMProjectInstallsDevDependencies(t *testing.T) {
74-
t.Parallel()
74+
// t.Parallel()
7575
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
7676
Image: "devxci/mbtci-java11-node14",
7777
User: "root",

integration/integration_nexus_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func assertFileCanBeDownloaded(t *testing.T, container IntegrationTestDockerExec
3030
}
3131

3232
func TestNexusIntegrationV3UploadMta(t *testing.T) {
33-
t.Parallel()
33+
// t.Parallel()
3434
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
3535
Image: "sonatype/nexus3:3.25.1",
3636
User: "nexus",
@@ -57,7 +57,7 @@ func TestNexusIntegrationV3UploadMta(t *testing.T) {
5757
}
5858

5959
func TestNexusIntegrationV3UploadMaven(t *testing.T) {
60-
t.Parallel()
60+
// t.Parallel()
6161
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
6262
Image: "sonatype/nexus3:3.25.1",
6363
User: "nexus",
@@ -84,7 +84,7 @@ func TestNexusIntegrationV3UploadMaven(t *testing.T) {
8484
}
8585

8686
func TestNexusIntegrationV3UploadNpm(t *testing.T) {
87-
t.Parallel()
87+
// t.Parallel()
8888
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
8989
Image: "sonatype/nexus3:3.25.1",
9090
User: "nexus",

integration/integration_npm_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
func TestNPMIntegrationRunScriptsWithOptions(t *testing.T) {
21-
t.Parallel()
21+
// t.Parallel()
2222
ctx := context.Background()
2323

2424
pwd, err := os.Getwd()
@@ -70,7 +70,7 @@ cd /test
7070
}
7171

7272
func TestNPMIntegrationRegistrySetInFlags(t *testing.T) {
73-
t.Parallel()
73+
// t.Parallel()
7474
ctx := context.Background()
7575

7676
pwd, err := os.Getwd()
@@ -121,7 +121,7 @@ cd /test
121121
}
122122

123123
func TestNPMIntegrationRegistrySetInNpmrc(t *testing.T) {
124-
t.Parallel()
124+
// t.Parallel()
125125
ctx := context.Background()
126126

127127
pwd, err := os.Getwd()
@@ -172,7 +172,7 @@ cd /test
172172
}
173173

174174
func TestNPMIntegrationRegistryWithTwoModules(t *testing.T) {
175-
t.Parallel()
175+
// t.Parallel()
176176
ctx := context.Background()
177177

178178
pwd, err := os.Getwd()

integration/integration_piper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
func TestPiperIntegrationHelp(t *testing.T) {
25-
t.Parallel()
25+
// t.Parallel()
2626
piperHelpCmd := command.Command{}
2727

2828
var commandOutput bytes.Buffer

integration/integration_python_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
)
2020

2121
func TestPythonIntegrationBuildProject(t *testing.T) {
22-
t.Parallel()
22+
// t.Parallel()
2323
ctx := context.Background()
2424
pwd, err := os.Getwd()
2525
assert.NoError(t, err, "Getting current working directory failed.")

integration/integration_sonar_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
func TestSonarIntegrationIssueSearch(t *testing.T) {
21-
t.Parallel()
21+
// t.Parallel()
2222
// init
2323
token := os.Getenv("PIPER_INTEGRATION_SONAR_TOKEN")
2424
require.NotEmpty(t, token, "SonarQube API Token is missing")
@@ -52,7 +52,7 @@ func TestSonarIntegrationIssueSearch(t *testing.T) {
5252
}
5353

5454
func TestSonarIntegrationMeasuresComponentSearch(t *testing.T) {
55-
t.Parallel()
55+
// t.Parallel()
5656
// init
5757
token := os.Getenv("PIPER_INTEGRATION_SONAR_TOKEN")
5858
require.NotEmpty(t, token, "SonarQube API Token is missing")
@@ -77,7 +77,7 @@ func TestSonarIntegrationMeasuresComponentSearch(t *testing.T) {
7777
}
7878

7979
func TestSonarIntegrationGetLinesOfCode(t *testing.T) {
80-
t.Parallel()
80+
// t.Parallel()
8181
// init
8282
token := os.Getenv("PIPER_INTEGRATION_SONAR_TOKEN")
8383
require.NotEmpty(t, token, "SonarQube API Token is missing")

0 commit comments

Comments
 (0)