Skip to content

Commit 1bc237a

Browse files
committed
Increase reduce timeout in swift-stress-tester to 2 seconds
I’ve had a few cases where parsing didn’t finish in 1 second but 2 were sufficient (in debug build of swift-syntax-test). Increase the timeout so that reduction works properly
1 parent 4da1457 commit 1bc237a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/swift-parser-test/swift-parser-test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class Reduce: ParsableCommand {
231231
}
232232

233233
try process.run()
234-
if sema.wait(timeout: DispatchTime.now() + .seconds(1)) == .timedOut {
234+
if sema.wait(timeout: DispatchTime.now() + .seconds(2)) == .timedOut {
235235
#if os(Windows)
236236
_ = TerminateProcess(process.processHandle, 0)
237237
#else

0 commit comments

Comments
 (0)