-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MainActivityTest_Drawer.testBackupAndBackDeep breaks #151
Comments
Debugging through each step of the test makes it pass. |
Test execution order is:
and removing all tests, even |
Not doing
makes it pass.
Not doing
makes it pass too. |
An inlined version:
the matchers don't make a difference. |
pass: rooms, categories, category_guide, items, sunburst, manage (pressBackExternal because it's separate process) |
Minimal repro is down to:
and the |
When passing D/LifecycleMonitor: Lifecycle status change: MainActivity in: PRE_ON_CREATE
D/LifecycleMonitor: Lifecycle status change: MainActivity in: CREATED
D/LifecycleMonitor: Lifecycle status change: MainActivity in: STARTED
D/LifecycleMonitor: Lifecycle status change: MainActivity in: RESUMED
D/LifecycleMonitor: Lifecycle status change: MainActivity in: PAUSED
D/LifecycleMonitor: Lifecycle status change: AboutActivity in: PRE_ON_CREATE
D/LifecycleMonitor: Lifecycle status change: AboutActivity in: CREATED
D/LifecycleMonitor: Lifecycle status change: AboutActivity in: STARTED
D/LifecycleMonitor: Lifecycle status change: AboutActivity in: RESUMED
+D/LifecycleMonitor: Lifecycle status change: MainActivity in: STOPPED
D/LifecycleMonitor: Lifecycle status change: AboutActivity in: PAUSED
+D/LifecycleMonitor: Lifecycle status change: MainActivity in: RESTARTED
+D/LifecycleMonitor: Lifecycle status change: MainActivity in: STARTED
D/LifecycleMonitor: Lifecycle status change: MainActivity in: RESUMED
D/LifecycleMonitor: Lifecycle status change: AboutActivity in: STOPPED
D/LifecycleMonitor: Lifecycle status change: AboutActivity in: DESTROYED
D/LifecycleMonitor: Lifecycle status change: MainActivity in: PAUSED
+D/LifecycleMonitor: Lifecycle status change: MainActivity in: STOPPED
+D/LifecycleMonitor: Lifecycle status change: MainActivity in: DESTROYED The "added" lines above are missing when a failure happens. |
Fixed with a workaround: wait for MainActivity to stop, and only act after. |
[FIX] TWiStErRob/net.twisterrob.inventory#151 by waiting for the MainActivity to be stopped before continuing.
[FIX] #151 by waiting for the MainActivity to be stopped before continuing.
[FIX] TWiStErRob/net.twisterrob.inventory#151 by waiting for the MainActivity to be stopped before continuing.
API 21 (consistent failure), API 23 works (3 tries passed)
hangs when whole class is executed
Result: no activity in foreground
Spamming log:
I/MonitoringInstr: Unstopped activity count: 1
and the test hangs for 30-ish seconds, then fails.
to make sure it fails:
The text was updated successfully, but these errors were encountered: