Skip to content

Commit 8ba8b22

Browse files
committed
ensure report directory tests work when run in parallel
1 parent 0ac65de commit 8ba8b22

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

reporters/json_report_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var _ = Describe("JSONReport", func() {
5757
var filePath string
5858

5959
BeforeEach(func() {
60-
folderPath = filepath.Join("test_outputs")
60+
folderPath = filepath.Join(fmt.Sprintf("test_outputs_%d", GinkgoParallelProcess()))
6161
fileName := fmt.Sprintf("report-%d", GinkgoParallelProcess())
6262
filePath = filepath.Join(folderPath, fileName)
6363

reporters/junit_report_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ var _ = Describe("JunitReport", func() {
379379
var filePath string
380380

381381
BeforeEach(func() {
382-
folderPath = filepath.Join("test_outputs")
382+
folderPath = filepath.Join(fmt.Sprintf("test_outputs_%d", GinkgoParallelProcess()))
383383
fileName := fmt.Sprintf("report-%d", GinkgoParallelProcess())
384384
filePath = filepath.Join(folderPath, fileName)
385385

reporters/teamcity_report_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var _ = Describe("TeamCityReport", func() {
5757
var filePath string
5858

5959
BeforeEach(func() {
60-
folderPath = filepath.Join("test_outputs")
60+
folderPath = filepath.Join(fmt.Sprintf("test_outputs_%d", GinkgoParallelProcess()))
6161
fileName := fmt.Sprintf("report-%d", GinkgoParallelProcess())
6262
filePath = filepath.Join(folderPath, fileName)
6363

0 commit comments

Comments
 (0)