Skip to content

Commit

Permalink
Update timeouts, actually skip test
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaresiak committed Nov 20, 2024
1 parent 803218f commit 96188f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions DuckDuckGoTests/DebouncerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ final class DebouncerTests: XCTestCase {
expectation.fulfill()
}

wait(for: [expectation], timeout: 0.1)
wait(for: [expectation], timeout: 1.0)
}

func testWhenCancelThenCancelBlockExecution() {
Expand All @@ -58,7 +58,7 @@ final class DebouncerTests: XCTestCase {
// WHEN
sut.cancel()

wait(for: [expectation], timeout: 0.1)
wait(for: [expectation], timeout: 1.0)
}

func testWhenDebounceTwoBlocksThenCancelFirstTaskWhenSecondBlockIsScheduled() {
Expand All @@ -76,6 +76,6 @@ final class DebouncerTests: XCTestCase {
secondTaskExpectation.fulfill()
}

wait(for: [firstTaskExpectation, secondTaskExpectation], timeout: 0.1)
wait(for: [firstTaskExpectation, secondTaskExpectation], timeout: 1.0)
}
}
4 changes: 2 additions & 2 deletions DuckDuckGoTests/FavoritesListInteractingAdapterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final class FavoritesListInteractingAdapterTests: XCTestCase {

NotificationCenter.default.post(name: AppUserDefaults.Notifications.favoritesDisplayModeChange, object: nil)

wait(for: [expectation], timeout: 0.1)
wait(for: [expectation], timeout: 1.0)
}

func testPublishesUpdateOnExternalListUpdate() {
Expand All @@ -69,7 +69,7 @@ final class FavoritesListInteractingAdapterTests: XCTestCase {

publisher.send()

wait(for: [expectation], timeout: 0.1)
wait(for: [expectation], timeout: 1.0)
}

private func createSUT() -> FavoritesListInteractingAdapter {
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGoTests/NewTabPageFavoritesModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ final class NewTabPageFavoritesModelTests: XCTestCase {
private let favoriteDataSource = MockNewTabPageFavoriteDataSource()

override func setUpWithError() throws {
XCTSkip("Potentially flaky")
throw XCTSkip("Potentially flaky")

try super.setUpWithError()
}

Expand Down

0 comments on commit 96188f6

Please sign in to comment.