Skip to content

Commit ff09423

Browse files
Add canSchedule tests.
1 parent 446116b commit ff09423

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

swift-sdk/Internal/HealthMonitor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class HealthMonitor {
5757
return count <= dataProvider.maxTasks
5858
} catch let error {
5959
ITBError("DBError: " + error.localizedDescription)
60+
onError()
6061
return false
6162
}
6263
}

tests/offline-events-tests/HealthMonitorTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class HealthMonitorTests: XCTestCase {
100100
internalAPI.track("myEvent3")
101101
wait(for: [expectation1], timeout: testExpectationTimeout)
102102
XCTAssertEqual(processors, ["Online", "Online", "Online"])
103+
XCTAssertFalse(internalAPI.requestHandler.offlineMode)
103104
}
104105

105106
func testScheduleTaskException() throws {

0 commit comments

Comments
 (0)