Skip to content

Commit 7e379d0

Browse files
TellowKrinkledrojf
authored andcommitted
JSONValidator: Increase reliability
1 parent 0a3f30e commit 7e379d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JSONValidator/Tests/JSONValidatorTests/JSONValidatorTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ final class JSONValidatorTests: XCTestCase {
196196
request.timeoutInterval = Double.random(in: 4...6) // Use a random interval so if the timeout reason was that the server didn't like our request spam, subsequent requests will be more and more spread out
197197

198198
tester.tryDownload(request, fulfilling: e, url: url, codingPath: codingPath, tries: 8)
199+
200+
waitForExpectations(timeout: 60) // Workaround for URLSession bug, normally we'd dispatch them all and wait for them all at once. See https://bugs.swift.org/browse/SR-15214 for details
199201
}
200202

201203
for mod in installData.mods {
@@ -217,8 +219,6 @@ final class JSONValidatorTests: XCTestCase {
217219
}
218220
}
219221
}
220-
221-
waitForExpectations(timeout: 60)
222222
}
223223

224224
static var allTests = [

0 commit comments

Comments
 (0)