Skip to content

Commit ca9bfbb

Browse files
Add: clarifying comment
1 parent cea7479 commit ca9bfbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WordPress/WordPressTest/Extensions/XCTestCase+Wait.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ extension XCTestCase {
77
waitExpectation.fulfill()
88
}
99

10+
// 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.
1012
waitForExpectations(timeout: duration + 1)
1113
}
1214
}

0 commit comments

Comments
 (0)