mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Clarify API
This commit is contained in:
parent
54cd300878
commit
59344ec41a
|
@ -22,7 +22,10 @@ extension XCTestCase {
|
|||
/// - Parameters:
|
||||
/// - timeout: number of seconds to wait before executing `closure`.
|
||||
/// - closure: a closure to execute when `timeout` seconds have passed.
|
||||
///
|
||||
/// - Note: `timeout` must be less than 60 seconds.
|
||||
func eventually(timeout: TimeInterval = 0.1, closure: @escaping () -> Void) {
|
||||
assert(timeout < 60)
|
||||
let expectation = self.expectation(description: "")
|
||||
expectation.fulfillAfter(timeout)
|
||||
self.waitForExpectations(timeout: 60) { _ in
|
||||
|
|
Loading…
Reference in a new issue