From 059ac748effcf713ccefb8f7a2c7893d8e297588 Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Thu, 3 Oct 2024 16:08:09 +0200 Subject: [PATCH] Fix billing repository test --- .../mullvad/mullvadvpn/lib/billing/BillingRepositoryTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/lib/billing/src/androidTest/kotlin/net/mullvad/mullvadvpn/lib/billing/BillingRepositoryTest.kt b/android/lib/billing/src/androidTest/kotlin/net/mullvad/mullvadvpn/lib/billing/BillingRepositoryTest.kt index 35dedb6200e8..083dfabff03e 100644 --- a/android/lib/billing/src/androidTest/kotlin/net/mullvad/mullvadvpn/lib/billing/BillingRepositoryTest.kt +++ b/android/lib/billing/src/androidTest/kotlin/net/mullvad/mullvadvpn/lib/billing/BillingRepositoryTest.kt @@ -58,7 +58,8 @@ class BillingRepositoryTest { mockkStatic(BILLING_FLOW_PARAMS) every { BillingClient.newBuilder(any()) } returns mockBillingClientBuilder - every { mockBillingClientBuilder.enablePendingPurchases() } returns mockBillingClientBuilder + every { mockBillingClientBuilder.enablePendingPurchases(any()) } returns + mockBillingClientBuilder every { mockBillingClientBuilder.setListener(capture(purchaseUpdatedListenerSlot)) } returns mockBillingClientBuilder every { mockBillingClientBuilder.build() } returns mockBillingClient