diff --git a/FirebaseSessions/Tests/TestApp/Shared/MockSubscriberSDK.swift b/FirebaseSessions/Tests/TestApp/Shared/MockSubscriberSDK.swift index e3ef501dd59..c7427286501 100644 --- a/FirebaseSessions/Tests/TestApp/Shared/MockSubscriberSDK.swift +++ b/FirebaseSessions/Tests/TestApp/Shared/MockSubscriberSDK.swift @@ -44,7 +44,7 @@ protocol MockSubscriberSDKProtocol { let sessions = ComponentType.instance(for: SessionsProvider.self, in: app.container) - sessions.register(subscriber: self) + sessions?.register(subscriber: self) } // MARK: - Library Conformance