diff --git a/Sources/RemoteMessaging/RemoteMessagingPercentileStoring.swift b/Sources/RemoteMessaging/RemoteMessagingPercentileStoring.swift index 1bb2f092c..531ebab8b 100644 --- a/Sources/RemoteMessaging/RemoteMessagingPercentileStoring.swift +++ b/Sources/RemoteMessaging/RemoteMessagingPercentileStoring.swift @@ -30,7 +30,7 @@ public class RemoteMessagingPercentileUserDefaultsStore: RemoteMessagingPercenti private let userDefaults: UserDefaults - init(userDefaults: UserDefaults) { + public init(userDefaults: UserDefaults) { self.userDefaults = userDefaults } diff --git a/Tests/BrowserServicesKitTests/RemoteMessaging/RemoteMessagingPercentileUserDefaultsStoreTests.swift b/Tests/BrowserServicesKitTests/RemoteMessaging/RemoteMessagingPercentileUserDefaultsStoreTests.swift index 9f62573af..6801fe72c 100644 --- a/Tests/BrowserServicesKitTests/RemoteMessaging/RemoteMessagingPercentileUserDefaultsStoreTests.swift +++ b/Tests/BrowserServicesKitTests/RemoteMessaging/RemoteMessagingPercentileUserDefaultsStoreTests.swift @@ -51,9 +51,9 @@ class RemoteMessagingPercentileUserDefaultsStoreTests: XCTestCase { func testWhenFetchingPercentileForMultipleMessages_ThenEachMessageHasIndependentPercentile() { let store = RemoteMessagingPercentileUserDefaultsStore(userDefaults: userDefaults) - let percentile1 = store.percentile(forMessageId: "message-1") - let percentile2 = store.percentile(forMessageId: "message-2") - let percentile3 = store.percentile(forMessageId: "message-3") + _ = store.percentile(forMessageId: "message-1") + _ = store.percentile(forMessageId: "message-2") + _ = store.percentile(forMessageId: "message-3") let percentileDictionary = userDefaults.dictionary( forKey: RemoteMessagingPercentileUserDefaultsStore.Constants.remoteMessagingPercentileMapping