Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ab3d4836 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Screen Chips] Remove context.mainExecutor from tests.

I had originally added `context.mainExecutor` because I was trying to
use a real version of `DialogTransitionAnimator`, which seemed to need
that to work correctly (based on `DialogTransitionAnimatorTest`). But,
it turns out that `context.mainExecutor` makes the mock live beyond the
lifetime of the test. Once a test is done, we clear out all our mocks to
have nulls everywhere, which means that subsequent tests will see null
values when they shouldn't.

Since I'm now using a mock version of `DialogTransitionAnimator`, we
don't need these calls anyway so this CL removes them.

Fixes: 346932645
Test: atest CastToOtherDeviceChipViewModelTest
ScreenRecordChipViewModelTest ShareToAppChipViewModelTest
Flag: NONE Fixing tests

Change-Id: I248867da9856007d7539c0654e86321d4ac240a1
parent e8c68566
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment