Closed Bug 1793211 Opened 3 years ago Closed 3 years ago

Intermittent unit test failure - mozilla.components.support.webextensions.WebExtensionSupportTest - reacts to tab being closed by removing tab from store

Categories

(Firefox for Android :: WebExtensions, defect, P5)

All
Android
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: csadilek, Unassigned)

Details

(Keywords: intermittent-failure)

From github: https://github.com/mozilla-mobile/android-components/issues/12697.

Issue seen for https://github.com/mozilla-mobile/android-components/pull/12695

Logs - https://firefox-ci-tc.services.mozilla.com/tasks/M7UpbYQqSyOxmZ_ZXSwoKg/runs/0/logs/public/logs/live.log

Stacktrace:

java.lang.IllegalStateException: Dispatchers.Main is used concurrently with setting it
at kotlinx.coroutines.test.internal.TestMainDispatcher$NonConcurrentlyModifiable.concurrentRW(TestMainDispatcher.kt:70)
at kotlinx.coroutines.test.internal.TestMainDispatcher$NonConcurrentlyModifiable.setValue(TestMainDispatcher.kt:86)
at kotlinx.coroutines.test.internal.TestMainDispatcher.resetDispatcher(TestMainDispatcher.kt:40)
at kotlinx.coroutines.test.TestDispatchers.resetMain(TestDispatchers.kt:37)
at mozilla.components.support.test.rule.MainCoroutineRule.finished(MainCoroutineRule.kt:53)
at org.junit.rules.TestWatcher.finishedQuietly(TestWatcher.java:117)
at org.junit.rules.TestWatcher.access$400(TestWatcher.java:46)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:64)
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.

Change performed by the Move to Bugzilla add-on.

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)
Severity: -- → S4
Priority: -- → P5
Flags: needinfo?(cpeterson)
Summary: Intermittent unit test failure - mozilla.components.support.webextensions.WebExtensionSupportTest - rreacts to tab being closed by removing tab from store → Intermittent unit test failure - mozilla.components.support.webextensions.WebExtensionSupportTest - reacts to tab being closed by removing tab from store
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.