Skip to content

Commit fb762a5

Browse files
committed
[tests] update tests to build after changes
* Executors init take in additional argument * A failing test needs more time to complete
1 parent 73d768b commit fb762a5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

iOS_SDK/OneSignalSDK/OneSignalUserTests/SwitchUserIntegrationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ final class SwitchUserIntegrationTests: XCTestCase {
369369
OneSignalUserManagerImpl.sharedInstance.addEmail("[email protected]")
370370

371371
// 3. Run background threads
372-
OneSignalCoreMocks.waitForBackgroundThreads(seconds: 0.5)
372+
OneSignalCoreMocks.waitForBackgroundThreads(seconds: 1)
373373

374374
/* Then */
375375

iOS_SDK/OneSignalSDK/OneSignalUserTests/UserConcurrencyTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ final class UserConcurrencyTests: XCTestCase {
9292
)
9393
OneSignalCoreImpl.setSharedClient(client)
9494

95-
let executor = OSSubscriptionOperationExecutor()
95+
let executor = OSSubscriptionOperationExecutor(newRecordsState: OSNewRecordsState())
9696
OSOperationRepo.sharedInstance.addExecutor(executor)
9797

9898
/* When */
@@ -131,7 +131,7 @@ final class UserConcurrencyTests: XCTestCase {
131131
OneSignalCoreImpl.setSharedClient(client)
132132
MockUserRequests.setAddAliasesResponse(with: client, aliases: aliases)
133133

134-
let executor = OSIdentityOperationExecutor()
134+
let executor = OSIdentityOperationExecutor(newRecordsState: OSNewRecordsState())
135135
OSOperationRepo.sharedInstance.addExecutor(executor)
136136

137137
/* When */
@@ -172,7 +172,7 @@ final class UserConcurrencyTests: XCTestCase {
172172
let identityModel = OSIdentityModel(aliases: [OS_ONESIGNAL_ID: UUID().uuidString], changeNotifier: OSEventProducer())
173173
OneSignalUserManagerImpl.sharedInstance.addIdentityModelToRepo(identityModel)
174174

175-
let executor = OSPropertyOperationExecutor()
175+
let executor = OSPropertyOperationExecutor(newRecordsState: OSNewRecordsState())
176176
OSOperationRepo.sharedInstance.addExecutor(executor)
177177

178178
/* When */
@@ -213,7 +213,7 @@ final class UserConcurrencyTests: XCTestCase {
213213
let identityModel1 = OSIdentityModel(aliases: [OS_ONESIGNAL_ID: UUID().uuidString], changeNotifier: OSEventProducer())
214214
let identityModel2 = OSIdentityModel(aliases: [OS_ONESIGNAL_ID: UUID().uuidString], changeNotifier: OSEventProducer())
215215

216-
let userExecutor = OSUserExecutor()
216+
let userExecutor = OSUserExecutor(newRecordsState: OSNewRecordsState())
217217

218218
/* When */
219219

0 commit comments

Comments
 (0)