Skip to content

Instantly share code, notes, and snippets.

@seivan
Created June 30, 2015 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seivan/d2dee9fcff0177cb3b93 to your computer and use it in GitHub Desktop.
Save seivan/d2dee9fcff0177cb3b93 to your computer and use it in GitHub Desktop.
var expectation = self.expectationWithDescription(__FUNCTION__)
dispatch_after(dispatch_time( DISPATCH_TIME_NOW, Int64(1 * Double(NSEC_PER_SEC))), dispatch_get_main_queue()) {
expectation.fulfill()
}
self.waitForExpectationsWithTimeout(1.1, nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment