Skip to content

Commit

Permalink
ensure report directory tests work when run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
onsi committed May 31, 2023
1 parent 0ac65de commit 8ba8b22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reporters/json_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var _ = Describe("JSONReport", func() {
var filePath string

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

Expand Down
2 changes: 1 addition & 1 deletion reporters/junit_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ var _ = Describe("JunitReport", func() {
var filePath string

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

Expand Down
2 changes: 1 addition & 1 deletion reporters/teamcity_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var _ = Describe("TeamCityReport", func() {
var filePath string

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

Expand Down

0 comments on commit 8ba8b22

Please sign in to comment.