Skip to content

Commit

Permalink
Fix existing test unit regarding adding identity model to subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
jinliu9508 committed May 17, 2024
1 parent 75f00b8 commit 95ec9c2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ class SubscriptionOperationExecutorTests : FunSpec({
test("create subscription fails with retry when there is a network condition") {
// Given
val mockSubscriptionBackendService = mockk<ISubscriptionBackendService>()
coEvery { mockSubscriptionBackendService.createSubscription(any(), any(), any(), any()) } throws BackendException(408, retryAfterSeconds = 10)
coEvery {
mockSubscriptionBackendService.createSubscription(any(), any(), any(), any())
} throws BackendException(408, retryAfterSeconds = 10)

val mockIdentityModelStore = MockHelper.identityModelStore()
val mockSubscriptionsModelStore = mockk<SubscriptionModelStore>()
Expand Down Expand Up @@ -217,6 +219,7 @@ class SubscriptionOperationExecutorTests : FunSpec({
mockSubscriptionBackendService,
MockHelper.deviceService(),
AndroidMockHelper.applicationService(),
MockHelper.identityModelStore(),
mockSubscriptionsModelStore,
MockHelper.configModelStore(),
mockBuildUserService,
Expand Down Expand Up @@ -694,6 +697,7 @@ class SubscriptionOperationExecutorTests : FunSpec({
mockSubscriptionBackendService,
MockHelper.deviceService(),
AndroidMockHelper.applicationService(),
MockHelper.identityModelStore(),
mockSubscriptionsModelStore,
MockHelper.configModelStore(),
mockBuildUserService,
Expand Down

0 comments on commit 95ec9c2

Please sign in to comment.