From acc5dc12207f519913329c17252636b7e478e862 Mon Sep 17 00:00:00 2001 From: Christian Sadilek Date: Thu, 29 Jul 2021 20:28:29 -0400 Subject: [PATCH] [fenix] Fix intermittent test failures of LoginExceptionFragmentStoreTest --- .../exceptions/login/LoginExceptionFragmentStoreTest.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/test/java/org/mozilla/fenix/exceptions/login/LoginExceptionFragmentStoreTest.kt b/app/src/test/java/org/mozilla/fenix/exceptions/login/LoginExceptionFragmentStoreTest.kt index ca8a3c03bd..ad50408420 100644 --- a/app/src/test/java/org/mozilla/fenix/exceptions/login/LoginExceptionFragmentStoreTest.kt +++ b/app/src/test/java/org/mozilla/fenix/exceptions/login/LoginExceptionFragmentStoreTest.kt @@ -4,7 +4,6 @@ package org.mozilla.fenix.exceptions.login -import io.mockk.mockk import mozilla.components.feature.logins.exceptions.LoginException import mozilla.components.support.test.ext.joinBlocking import org.junit.Assert.assertEquals @@ -17,7 +16,12 @@ class LoginExceptionFragmentStoreTest { fun onChange() { val initialState = ExceptionsFragmentState() val store = ExceptionsFragmentStore(initialState) - val newExceptionsItem: LoginException = mockk() + val newExceptionsItem: LoginException = object : LoginException { + override val id: Long + get() = 1234L + override val origin: String + get() = "test" + } store.dispatch(ExceptionsFragmentAction.Change(listOf(newExceptionsItem))).joinBlocking() assertNotSame(initialState, store.state)