Skip to content

Commit 7540247

Browse files
committed
chore: Parameterize number of iterations for critical unit test.
1 parent 1a332dc commit 7540247

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/DispatchAsyncTests/DispatchGroupTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import Testing
1717

1818
private typealias DispatchGroup = DispatchAsync.DispatchGroup
1919

20-
@Test
21-
func dispatchGroupOrderCleanliness() async throws {
22-
// Repeating this 100 times to help rule out
20+
@Test(arguments: [100])
21+
func dispatchGroupOrderCleanliness(repetitions: Int) async throws {
22+
// Repeating this `repetitions` number of times to help rule out
2323
// edge cases that only show up some of the time
24-
for index in 0 ..< 100 {
24+
for index in 0 ..< repetitions {
2525
Task {
2626
actor Result {
2727
private(set) var value = ""

0 commit comments

Comments
 (0)