Skip to content

Commit

Permalink
Better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrenskers committed Dec 13, 2022
1 parent bceffcb commit 2a4b08b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase {

crashWrapper = TestSentryCrashWrapper.sharedInstance()
SentryDependencyContainer.sharedInstance().crashWrapper = crashWrapper
SentryDependencyContainer.sharedInstance().fileManager = try! SentryFileManager(options: options, andCurrentDateProvider: currentDate)

let hub = SentryHub(client: client, andScope: nil, andCrashWrapper: crashWrapper, andCurrentDateProvider: currentDate)
SentrySDK.setCurrentHub(hub)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SentryTests/TestClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ class TestFileManager: SentryFileManager {
var readAppStateInvocations = Invocations<Void>()
override func readAppState() -> SentryAppState? {
readAppStateInvocations.record(Void())
return super.readAppState()
return nil
}

var readPreviousAppStateInvocations = Invocations<Void>()
override func readPreviousAppState() -> SentryAppState? {
readPreviousAppStateInvocations.record(Void())
return super.readPreviousAppState()
return nil
}
}

0 comments on commit 2a4b08b

Please sign in to comment.