Added test for shutdown/widget updater race in PSTM
This commit is contained in:
parent
c98a7c0c38
commit
4f3fa6246e
|
@ -228,6 +228,15 @@ public class PlaybackServiceTaskManagerTest {
|
|||
pstm.shutdown();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStartWidgetUpdaterAfterShutdown() {
|
||||
// Should not throw.
|
||||
final Context c = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
PlaybackServiceTaskManager pstm = new PlaybackServiceTaskManager(c, defaultPSTM);
|
||||
pstm.shutdown();
|
||||
pstm.startWidgetUpdater();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsWidgetUpdaterActive() {
|
||||
final Context c = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
|
|
Loading…
Reference in New Issue