mozilla-mobile / fenix

⚠️ Fenix (Firefox for Android) moved to a new repository. It is now developed and maintained as part of: https://github.com/mozilla-mobile/firefox-android
https://github.com/mozilla-mobile/firefox-android
Mozilla Public License 2.0
6.46k stars 1.27k forks source link

Intermittent debug(T) - org.mozilla.fenix.tabstray.browser.InactiveTabsControllerTest - WHEN expanded THEN notify filtered card #24870

Closed Archaeopteryx closed 1 year ago

Archaeopteryx commented 2 years ago

Firebase Test Run:

https://treeherder.mozilla.org/logviewer?job_id=374668945&repo=fenix

Stacktrace:

SUITE: org.mozilla.fenix.tabstray.browser.InactiveTabsControllerTest
  TEST: WHEN expanded THEN notify filtered card
    W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/vcs/app/build/intermediates/apk_for_local_test/debugUnitTest/apk-for-local-test.ap_ Binary XML file line #40
    E/glean/MetricsPingSched: MetricsPingScheduler last stored ping time was not valid
    I/glean/MetricsPingSched: The 'metrics' ping is scheduled for immediate collection, 1650049132370
    I/glean/MetricsPingSched: Collecting the 'metrics' ping, now = 1650049132370, startup = true, reason = overdue
    D/glean/MetricsPingSched: Scheduling the 'metrics' ping in 32467630ms
  FAILURE

java.lang.AssertionError: Verification failed: call 1 of 1: TabsTray(#132).updateTabs(slotCapture<List>(), null(), any())) was not called
    at io.mockk.impl.recording.states.VerifyingState.failIfNotPassed(VerifyingState.kt:66)
    at io.mockk.impl.recording.states.VerifyingState.recordingDone(VerifyingState.kt:42)
    at io.mockk.impl.recording.CommonCallRecorder.done(CommonCallRecorder.kt:47)
    at io.mockk.impl.eval.RecordedBlockEvaluator.record(RecordedBlockEvaluator.kt:64)
    at io.mockk.impl.eval.VerifyBlockEvaluator.verify(VerifyBlockEvaluator.kt:30)
    at io.mockk.MockKDsl.internalVerify(API.kt:118)
    at io.mockk.MockKKt.verify(MockK.kt:149)
    at io.mockk.MockKKt.verify$default(MockK.kt:146)
    at org.mozilla.fenix.tabstray.browser.InactiveTabsControllerTest.WHEN expanded THEN notify filtered card(InactiveTabsControllerTest.kt:62)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:591)
    at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:274)
    at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:88)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
    Suppressed: org.robolectric.android.internal.AndroidTestEnvironment$UnExecutedRunnablesException: Main looper has queued unexecuted runnables. This might be the cause of the test failure. You might need a shadowOf(Looper.getMainLooper()).idle() call.

Build:

https://github.com/mozilla-mobile/fenix/commit/f13978bc3b8400d7b3a1458d6cd028084dd11655

┆Issue is synchronized with this Jira Task

stale[bot] commented 1 year ago

See: https://github.com/mozilla-mobile/fenix/issues/17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.