Skip to content

Commit

Permalink
Add small delay so the model is ready for delete. #136
Browse files Browse the repository at this point in the history
  • Loading branch information
vherrin committed Dec 21, 2015
1 parent ccc9c41 commit db177fb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ class LanguageTranslationTests: XCTestCase {
Log.sharedLogger.error("\(error)")
creationExpectation.fulfill()

// Add a small delay so the model is ready for delete. This is not a normal flow of create and delete immediately
// so this is only a testing issue
sleep(3)

self.service.deleteModel(model!) { error in
XCTAssertNil(error)
deletionExpectation.fulfill()
Expand Down

0 comments on commit db177fb

Please sign in to comment.