Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class AuthTokenRefreshWideEventTest {
metadata = mapOf("play_login_error" to "sign-in-required"),
)
verify(wideEventClient).intervalEnd(16L, "total_duration_ms_bucketed")
verify(wideEventClient).flowFinish(16L, FlowStatus.Failure("IllegalStateException: boom"), emptyMap())
verify(wideEventClient).flowFinish(16L, FlowStatus.Failure("IllegalStateException"), emptyMap())

reset(wideEventClient)

Expand Down Expand Up @@ -230,7 +230,7 @@ class AuthTokenRefreshWideEventTest {
authWideEvent.onFailure(IllegalArgumentException("nope"))

verify(wideEventClient).intervalEnd(19L, "total_duration_ms_bucketed")
verify(wideEventClient).flowFinish(19L, FlowStatus.Failure("IllegalArgumentException: nope"), emptyMap())
verify(wideEventClient).flowFinish(19L, FlowStatus.Failure("IllegalArgumentException"), emptyMap())
}

@SuppressLint("DenyListedApi")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class SubscriptionPurchaseWideEventTest {
verify(wideEventClient).flowStep(456L, "refresh_subscription", false)
verify(wideEventClient).flowFinish(
wideEventId = 456L,
status = FlowStatus.Failure("IllegalStateException: boom"),
status = FlowStatus.Failure("IllegalStateException"),
metadata = emptyMap(),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,4 @@ class AuthTokenRefreshWideEventImpl @Inject constructor(
}
}

private fun Exception.toErrorString(): String =
listOfNotNull(javaClass.simpleName, message).joinToString(": ")
private fun Exception.toErrorString(): String = javaClass.simpleName
Original file line number Diff line number Diff line change
Expand Up @@ -337,5 +337,4 @@ class SubscriptionPurchaseWideEventImpl @Inject constructor(
}
}

private fun Exception.toErrorString(): String =
listOf(javaClass.simpleName, message).joinToString(": ")
private fun Exception.toErrorString(): String = javaClass.simpleName
Loading