Skip to content

Commit

Permalink
Increase timeout for flaky tests
Browse files Browse the repository at this point in the history
- Add assertions for failing condition to have errors
  • Loading branch information
aokj4ck committed Apr 25, 2024
1 parent 0530095 commit 8d447dd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class OfflineIntegrationTests: XCTestCase {

let offlineUpdateExpectation = delegate.offlineUpdateExpectation
searchEngine.search(query: "cafe")
wait(for: [offlineUpdateExpectation], timeout: 10)
wait(for: [offlineUpdateExpectation], timeout: 100)

XCTAssertNil(delegate.error)
XCTAssertNil(delegate.error?.localizedDescription)
Expand All @@ -208,8 +208,11 @@ class OfflineIntegrationTests: XCTestCase {

let errorExpectation = delegate.errorExpectation
searchEngine.search(query: "query")
wait(for: [errorExpectation], timeout: 10)
wait(for: [errorExpectation], timeout: 100)

XCTAssertNotNil(delegate.error)
XCTAssertNotNil(delegate.error?.localizedDescription)
XCTAssertNil(searchEngine.responseInfo)
XCTAssertTrue(searchEngine.suggestions.isEmpty)
}

Expand Down

0 comments on commit 8d447dd

Please sign in to comment.