@@ -79,7 +79,7 @@ class LoginUserOperationExecutorTests : FunSpec({
7979 mockSubscriptionsModelStore,
8080 MockHelper .configModelStore(),
8181 MockHelper .languageContext(),
82- getJwtTokenStore(), getIdentityVerificationService(),
82+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
8383 )
8484 val operations =
8585 listOf<Operation >(
@@ -124,7 +124,7 @@ class LoginUserOperationExecutorTests : FunSpec({
124124 mockSubscriptionsModelStore,
125125 MockHelper .configModelStore(),
126126 MockHelper .languageContext(),
127- getJwtTokenStore(), getIdentityVerificationService(),
127+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
128128 )
129129 val operations =
130130 listOf<Operation >(
@@ -153,7 +153,7 @@ class LoginUserOperationExecutorTests : FunSpec({
153153 val mockSubscriptionsModelStore = mockk<SubscriptionModelStore >()
154154
155155 val loginUserOperationExecutor =
156- LoginUserOperationExecutor (mockIdentityOperationExecutor, AndroidMockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService())
156+ LoginUserOperationExecutor (mockIdentityOperationExecutor, AndroidMockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true) )
157157 val operations =
158158 listOf<Operation >(
159159 LoginUserOperation (appId, localOneSignalId, null, null),
@@ -181,7 +181,7 @@ class LoginUserOperationExecutorTests : FunSpec({
181181 val mockSubscriptionsModelStore = mockk<SubscriptionModelStore >()
182182
183183 val loginUserOperationExecutor =
184- LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService())
184+ LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true) )
185185 val operations = listOf<Operation >(LoginUserOperation (appId, localOneSignalId, "externalId", null))
186186
187187 // When
@@ -219,7 +219,7 @@ class LoginUserOperationExecutorTests : FunSpec({
219219 mockSubscriptionsModelStore,
220220 MockHelper .configModelStore(),
221221 MockHelper .languageContext(),
222- getJwtTokenStore(), getIdentityVerificationService(),
222+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
223223 )
224224 val operations = listOf<Operation >(LoginUserOperation (appId, localOneSignalId, "externalId", null))
225225
@@ -248,7 +248,7 @@ class LoginUserOperationExecutorTests : FunSpec({
248248 val mockSubscriptionsModelStore = mockk<SubscriptionModelStore >()
249249
250250 val loginUserOperationExecutor =
251- LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService())
251+ LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true) )
252252 val operations = listOf<Operation >(LoginUserOperation (appId, localOneSignalId, "externalId", "existingOneSignalId"))
253253
254254 // When
@@ -284,7 +284,7 @@ class LoginUserOperationExecutorTests : FunSpec({
284284 val mockSubscriptionsModelStore = mockk<SubscriptionModelStore >()
285285
286286 val loginUserOperationExecutor =
287- LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService())
287+ LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true) )
288288 val operations = listOf<Operation >(LoginUserOperation (appId, localOneSignalId, "externalId", "existingOneSignalId"))
289289
290290 // When
@@ -320,7 +320,7 @@ class LoginUserOperationExecutorTests : FunSpec({
320320 val mockSubscriptionsModelStore = mockk<SubscriptionModelStore >()
321321
322322 val loginUserOperationExecutor =
323- LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService())
323+ LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true) )
324324 val operations = listOf<Operation >(LoginUserOperation (appId, localOneSignalId, "externalId", "existingOneSignalId"))
325325
326326 // When
@@ -358,7 +358,7 @@ class LoginUserOperationExecutorTests : FunSpec({
358358 val mockSubscriptionsModelStore = mockk<SubscriptionModelStore >()
359359
360360 val loginUserOperationExecutor =
361- LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService())
361+ LoginUserOperationExecutor (mockIdentityOperationExecutor, MockHelper .applicationService(), MockHelper .deviceService(), mockUserBackendService, mockIdentityModelStore, mockPropertiesModelStore, mockSubscriptionsModelStore, MockHelper .configModelStore(), MockHelper .languageContext(), getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true) )
362362 val operations = listOf<Operation >(LoginUserOperation (appId, localOneSignalId, "externalId", "existingOneSignalId"))
363363
364364 // When
@@ -409,7 +409,7 @@ class LoginUserOperationExecutorTests : FunSpec({
409409 mockSubscriptionsModelStore,
410410 MockHelper .configModelStore(),
411411 MockHelper .languageContext(),
412- getJwtTokenStore(), getIdentityVerificationService(),
412+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
413413 )
414414 val operations =
415415 listOf<Operation >(
@@ -514,7 +514,7 @@ class LoginUserOperationExecutorTests : FunSpec({
514514 mockSubscriptionsModelStore,
515515 MockHelper .configModelStore(),
516516 MockHelper .languageContext(),
517- getJwtTokenStore(), getIdentityVerificationService(),
517+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
518518 )
519519 val operations =
520520 listOf<Operation >(
@@ -603,7 +603,7 @@ class LoginUserOperationExecutorTests : FunSpec({
603603 mockSubscriptionsModelStore,
604604 MockHelper .configModelStore(),
605605 MockHelper .languageContext(),
606- getJwtTokenStore(), getIdentityVerificationService(),
606+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
607607 )
608608 val operations =
609609 listOf<Operation >(
@@ -678,7 +678,7 @@ class LoginUserOperationExecutorTests : FunSpec({
678678 mockSubscriptionsModelStore,
679679 MockHelper .configModelStore(),
680680 MockHelper .languageContext(),
681- getJwtTokenStore(), getIdentityVerificationService(),
681+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
682682 )
683683 val operations =
684684 listOf<Operation >(
@@ -744,7 +744,7 @@ class LoginUserOperationExecutorTests : FunSpec({
744744 mockSubscriptionsModelStore,
745745 MockHelper .configModelStore(),
746746 MockHelper .languageContext(),
747- getJwtTokenStore(), getIdentityVerificationService(),
747+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
748748 )
749749 // anonymous Login request
750750 val operations = listOf<Operation >(LoginUserOperation (appId, localOneSignalId, null, null))
@@ -791,7 +791,7 @@ class LoginUserOperationExecutorTests : FunSpec({
791791 mockSubscriptionsModelStore,
792792 MockHelper .configModelStore(),
793793 MockHelper .languageContext(),
794- getJwtTokenStore(), getIdentityVerificationService(),
794+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
795795 )
796796
797797 // send PUSH then EMAIL (local IDs 1,2) — order differs from backend response
@@ -856,7 +856,7 @@ class LoginUserOperationExecutorTests : FunSpec({
856856 mockSubscriptionsModelStore,
857857 configModelStore,
858858 MockHelper .languageContext(),
859- getJwtTokenStore(), getIdentityVerificationService(),
859+ getJwtTokenStore(), getIdentityVerificationService(), mockk<com.onesignal.common.consistency.models. IConsistencyManager >(relaxed = true),
860860 )
861861
862862 val ops =
@@ -915,6 +915,7 @@ class LoginUserOperationExecutorTests : FunSpec({
915915 MockHelper .languageContext(),
916916 getJwtTokenStore(),
917917 getIdentityVerificationService(newCodePathsRun = true, ivBehaviorActive = true),
918+ mockk<com.onesignal.common.consistency.models.IConsistencyManager >(relaxed = true),
918919 )
919920
920921 // LoginUserOperation has existingOnesignalId AND externalId — the input shape that
0 commit comments