Skip to content

Commit

Permalink
Set larger timeout for some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Jul 25, 2024
1 parent 39ba537 commit 983acea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ContentBlockerReferenceTests: XCTestCase {
self.popTestAndExecute(onTestExecuted: testsExecuted)
}

waitForExpectations(timeout: 30, handler: nil)
waitForExpectations(timeout: 60, handler: nil)
}

private func popTestAndExecute(onTestExecuted: XCTestExpectation) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsFirstPartyTrackerThenItIsNotBlocked() {
Expand Down Expand Up @@ -226,7 +226,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsFirstPartyRequestThenItIsNotBlocked() {
Expand Down Expand Up @@ -256,7 +256,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsTrackerOnLocallyUnprotectedSiteThenItIsReportedButNotBlocked() {
Expand Down Expand Up @@ -286,7 +286,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsTrackerOnAllowlistThenItIsReportedButNotBlocked() {
Expand Down Expand Up @@ -318,7 +318,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsTrackerOnLocallyUnprotectedSiteSubdomainThenItIsReportedAndBlocked() {
Expand All @@ -345,7 +345,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsTrackerOnSiteSimmilarToLocallyUnprotectedSiteThenItIsReportedAndBlocked() {
Expand All @@ -372,7 +372,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsTrackerOnTempUnprotectedSiteThenItIsReportedButNotBlocked() {
Expand Down Expand Up @@ -402,7 +402,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsTrackerOnTempUnprotectedSiteSubdomainThenItIsReportedButNotBlocked() {
Expand Down Expand Up @@ -432,7 +432,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsTrackerOnSiteSimmilarToTempUnprotectedSiteThenItIsReportedAndBlocked() {
Expand All @@ -459,7 +459,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsTrackerOnSiteFromExceptionListThenItIsReportedButNotBlocked() {
Expand Down Expand Up @@ -489,7 +489,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenThereIsTrackerOnSubdomainOfSiteFromExceptionListThenItIsReportedButNotBlocked() {
Expand Down Expand Up @@ -519,7 +519,7 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}

func testWhenContentBlockingFeatureIsDisabledThenTrackersAreReportedButNotBlocked() {
Expand Down Expand Up @@ -549,6 +549,6 @@ class ContentBlockerRulesUserScriptsTests: XCTestCase {

performTest(privacyConfig: privacyConfig, websiteURL: websiteURL)

self.wait(for: [websiteLoaded], timeout: 30)
self.wait(for: [websiteLoaded], timeout: 60)
}
}

0 comments on commit 983acea

Please sign in to comment.