Class mozilla.components.feature.addons.update.AddonUpdaterWorkerTest
|
100%
successful |
Tests
Test | Duration | Result |
---|---|---|
doWork - will return Result_failure when NotInstalled | 0.037s | passed |
doWork - will return Result_retry when an Error happens and is recoverable | 0.092s | passed |
doWork - will return Result_success when NoUpdateAvailable | 0.027s | passed |
doWork - will return Result_success when SuccessfullyUpdated | 0.099s | passed |
doWork - will return Result_success when an Error happens and is unrecoverable | 0.028s | passed |
doWork - will try pass any exceptions to the crashReporter | 0.034s | passed |
retryIfRecoverable must return retry for recoverable exception | 0.032s | passed |
retryIfRecoverable must return success for unrecoverable exception | 0.025s | passed |
Standard output
W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 I [AddonUpdaterWorker] Trying to update extension addonId E [AddonUpdaterWorker] Unable to update extension addonId, re-schedule error W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 I [AddonUpdaterWorker] Trying to update extension addonId I [AddonUpdaterWorker] Extension addonId successfully updated W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 I [AddonUpdaterWorker] Trying to update extension addonId E [AddonUpdaterWorker] Unable to update extension addonId, re-schedule initialize must be called before trying to access the AddonManager W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 I [AddonUpdaterWorker] Trying to update extension addonId E [AddonUpdaterWorker] Not installed extension with id addonId removed from the update queue W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 I [AddonUpdaterWorker] Trying to update extension addonId E [AddonUpdaterWorker] Unable to update extension addonId, re-schedule error W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 I [AddonUpdaterWorker] Trying to update extension addonId I [AddonUpdaterWorker] There is no update available for addonId
Standard error
mozilla.components.concept.engine.webextension.WebExtensionException: java.lang.Exception at mozilla.components.feature.addons.update.AddonUpdaterWorkerTest$doWork - will return Result_retry when an Error happens and is recoverable$1.invokeSuspend(AddonUpdaterWorkerTest.kt:143) at mozilla.components.feature.addons.update.AddonUpdaterWorkerTest$doWork - will return Result_retry when an Error happens and is recoverable$1.invoke(AddonUpdaterWorkerTest.kt) at mozilla.components.feature.addons.update.AddonUpdaterWorkerTest$doWork - will return Result_retry when an Error happens and is recoverable$1.invoke(AddonUpdaterWorkerTest.kt) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:317) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invoke(TestBuilders.kt) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invoke(TestBuilders.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:20) at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:360) at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:134) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1.invokeSuspend(TestBuilders.kt:312) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1.invoke(TestBuilders.kt) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1.invoke(TestBuilders.kt) at kotlinx.coroutines.test.TestBuildersJvmKt$createTestResult$1.invokeSuspend(TestBuildersJvm.kt:11) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263) at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70) at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48) at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source) at kotlinx.coroutines.test.TestBuildersJvmKt.createTestResult(TestBuildersJvm.kt:10) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:309) at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:167) at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source) at mozilla.components.support.test.rule.HelpersKt.runTestOnMain-VtjQ1oo(Helpers.kt:54) at mozilla.components.support.test.rule.HelpersKt.runTestOnMain-VtjQ1oo$default(Helpers.kt:38) at mozilla.components.feature.addons.update.AddonUpdaterWorkerTest.doWork - will return Result_retry when an Error happens and is recoverable(AddonUpdaterWorkerTest.kt:135) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:502) at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$2(SandboxTestRunner.java:285) at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:104) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.lang.Exception ... 48 more java.lang.IllegalArgumentException: initialize must be called before trying to access the AddonManager at mozilla.components.feature.addons.update.GlobalAddonDependencyProvider.requireAddonManager$feature_addons_release(GlobalAddonDependencyProvider.kt:33) at mozilla.components.feature.addons.update.AddonUpdaterWorker$doWork$2.invokeSuspend(AddonUpdater.kt:605) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:375) at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:26) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:170) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) at mozilla.components.feature.addons.update.AddonUpdaterWorker.doWork(AddonUpdater.kt:596) at androidx.work.CoroutineWorker$startWork$1.invokeSuspend(CoroutineWorker.kt:67) at androidx.work.CoroutineWorker$startWork$1.invoke(CoroutineWorker.kt) at androidx.work.CoroutineWorker$startWork$1.invoke(CoroutineWorker.kt) at androidx.work.ListenableFutureKt$launchFuture$1$2.invokeSuspend(ListenableFuture.kt:42) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:829) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704) mozilla.components.concept.engine.webextension.WebExtensionException: java.lang.Exception at mozilla.components.feature.addons.update.AddonUpdaterWorkerTest$doWork - will return Result_success when an Error happens and is unrecoverable$1.invokeSuspend(AddonUpdaterWorkerTest.kt:167) at mozilla.components.feature.addons.update.AddonUpdaterWorkerTest$doWork - will return Result_success when an Error happens and is unrecoverable$1.invoke(AddonUpdaterWorkerTest.kt) at mozilla.components.feature.addons.update.AddonUpdaterWorkerTest$doWork - will return Result_success when an Error happens and is unrecoverable$1.invoke(AddonUpdaterWorkerTest.kt) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:317) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invoke(TestBuilders.kt) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invoke(TestBuilders.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:20) at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:360) at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:134) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1.invokeSuspend(TestBuilders.kt:312) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1.invoke(TestBuilders.kt) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1.invoke(TestBuilders.kt) at kotlinx.coroutines.test.TestBuildersJvmKt$createTestResult$1.invokeSuspend(TestBuildersJvm.kt:11) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263) at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70) at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48) at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source) at kotlinx.coroutines.test.TestBuildersJvmKt.createTestResult(TestBuildersJvm.kt:10) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:309) at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source) at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:167) at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source) at mozilla.components.support.test.rule.HelpersKt.runTestOnMain-VtjQ1oo(Helpers.kt:54) at mozilla.components.support.test.rule.HelpersKt.runTestOnMain-VtjQ1oo$default(Helpers.kt:38) at mozilla.components.feature.addons.update.AddonUpdaterWorkerTest.doWork - will return Result_success when an Error happens and is unrecoverable(AddonUpdaterWorkerTest.kt:159) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:502) at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$2(SandboxTestRunner.java:285) at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:104) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.lang.Exception ... 48 more