We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c16a40a + ca9bfbb commit 2db1a9dCopy full SHA for 2db1a9d
WordPress/WordPressTest/Extensions/XCTestCase+Wait.swift
@@ -7,6 +7,8 @@ extension XCTestCase {
7
waitExpectation.fulfill()
8
}
9
10
- waitForExpectations(timeout: duration)
+ // We wait for the duration + 1 second to allow some buffer in case the dispatched block gets
11
+ // delayed by GCD for any reason for even 1 microsecond.
12
+ waitForExpectations(timeout: duration + 1)
13
14
0 commit comments