Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Intermittent unit test failure - mozilla.components.feature.customtabs.CustomTabWindowFeatureTest - given a request to open window, when the url can be handled, then the activity should start #12225

Closed
Archaeopteryx opened this issue May 24, 2022 · 1 comment
Labels
🎲 intermittent-test Evil test failures that only happen now-and-then and are a productivity killer

Comments

@Archaeopteryx
Copy link

Archaeopteryx commented May 24, 2022

Firebase Test Run:

https://treeherder.mozilla.org/logviewer?job_id=379135470&repo=android-components

Stacktrace:

SUITE: mozilla.components.feature.customtabs.CustomTabWindowFeatureTest
  TEST: given a request to open window, when the url can be handled, then the activity should start
  FAILURE

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:82)
	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:54)
	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)

Build:

bdbc5c1

┆Issue is synchronized with this Jira Task

@AaronMT AaronMT changed the title Intermittent UI test failure - mozilla.components.feature.customtabs.CustomTabWindowFeatureTest - given a request to open window, when the url can be handled, then the activity should start Intermittent unit test failure - mozilla.components.feature.customtabs.CustomTabWindowFeatureTest - given a request to open window, when the url can be handled, then the activity should start May 27, 2022
@jonalmeida jonalmeida added the 🎲 intermittent-test Evil test failures that only happen now-and-then and are a productivity killer label Jun 13, 2022
@csadilek
Copy link
Contributor

Dupe / same cause: #12230

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🎲 intermittent-test Evil test failures that only happen now-and-then and are a productivity killer
Projects
None yet
Development

No branches or pull requests

3 participants