Utilize newBuilder instead of copy in unit test.

This commit is contained in:
Alex Hart
2025-03-18 15:19:07 -03:00
committed by Cody Henthorne
parent 1adcfd5abb
commit 5d4fec2e73

View File

@@ -568,15 +568,10 @@ class InAppPaymentRecurringContextJobTest {
state = state,
subscriberId = subscriberId,
endOfPeriod = null,
inAppPaymentData = iap.data.copy(
badge = badge,
waitForAuth = null,
stripeActionComplete = null,
payPalActionComplete = null,
payPalRequiresAction = null,
stripeRequiresAction = null,
redemption = redemptionState
)
inAppPaymentData = iap.data.newBuilder()
.badge(badge)
.redemption(redemptionState)
.build()
)
return iap