diff options
| author | 2024-12-05 11:39:08 +0000 | |
|---|---|---|
| committer | 2024-12-05 11:45:36 +0000 | |
| commit | 28e6368ef756fa4f7e5b1097122ee137cac44334 (patch) | |
| tree | 76538414efc0d33f79e35a725c279e74b7520d89 /libs/input/PointerController.cpp | |
| parent | d7864f4f52258027856a64a4b2b80efbd9af9306 (diff) | |
Fixing flakiness of KeyboardTouchpadTutorialViewModelTest
Test was sometimes failing because of using LifecycleRegistry with provided LifecycleOwner - owner is held by registry by WeakReference only. Because it wasn't referenced anywhere else, sometimes it would be garbage collected before our `lifecycle.handleLifecycleEvent()` calls.
Instead let's just call lifecycle methods directly to avoid using lifecycle-related objects and depend on them.
More info in b/376676384
Fixes: 376676384
Test: KeyboardTouchpadTutorialViewModelTest with added System.gc() calls
Flag: EXEMPT test fix
Change-Id: I3605396e2deb8f9dcdf8eab5ad87fb34ab8cc9f3
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions