Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adhiamboperes committed Sep 10, 2024
1 parent 1a4d82d commit 28d2742
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class CreateProfileFragmentTest {
testCoroutineDispatchers.runCurrent()

val expectedParams =
IntroActivityParams.newBuilder().setProfileNickname("John").setProfileId(0).build()
IntroActivityParams.newBuilder().setProfileNickname("John").build()
intended(
allOf(
hasComponent(IntroActivity::class.java.name),
Expand Down Expand Up @@ -280,7 +280,7 @@ class CreateProfileFragmentTest {
testCoroutineDispatchers.runCurrent()

val expectedParams =
IntroActivityParams.newBuilder().setProfileNickname("John").setProfileId(0).build()
IntroActivityParams.newBuilder().setProfileNickname("John").build()
intended(
allOf(
hasComponent(IntroActivity::class.java.name),
Expand Down Expand Up @@ -328,7 +328,7 @@ class CreateProfileFragmentTest {
testCoroutineDispatchers.runCurrent()

val expectedParams =
IntroActivityParams.newBuilder().setProfileNickname("John").setProfileId(0).build()
IntroActivityParams.newBuilder().setProfileNickname("John").build()
intended(
allOf(
hasComponent(IntroActivity::class.java.name),
Expand Down Expand Up @@ -391,7 +391,7 @@ class CreateProfileFragmentTest {
testCoroutineDispatchers.runCurrent()

val expectedParams =
IntroActivityParams.newBuilder().setProfileNickname("John").setProfileId(0).build()
IntroActivityParams.newBuilder().setProfileNickname("John").build()
intended(
allOf(
hasComponent(IntroActivity::class.java.name),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2467,12 +2467,12 @@ class EventLogSubject private constructor(
private val actual: EventLog.ProfileOnboardingContext
) : LiteProtoSubject(metadata, actual) {
/**
* Returns a [ComparableSubject] to test [EventLog.ProfileOnboardingContext.getProfileId].
* Returns a [LiteProtoSubject] to test [EventLog.ProfileOnboardingContext.getProfileId].
*
* This method never fails since the underlying property defaults to empty string if it's not
* defined in the context.
*/
fun hasProfileIdThat(): LiteProtoSubject = assertThat(actual.profileId)
fun hasProfileIdThat(): LiteProtoSubject = LiteProtoTruth.assertThat(actual.profileId)

companion object {
/**
Expand Down

0 comments on commit 28d2742

Please sign in to comment.