Questions tagged [mainlooper]
2 questions
14
votes
1 answer
Robolectric 4.4 Unit Test Error - Main looper has queued unexecuted runnables
Unit test errors with this
Called loadFromPath(/system/framework/framework-res.apk, true); mode=binary sdk=28
java.lang.Exception: Main looper has queued unexecuted runnables.
This might be the cause of the test failure. You might need a…

JPM
- 9,077
- 13
- 78
- 137
0
votes
1 answer
Android test cases robolectric Shadowlooper idle VS idleFor
using robolectric version 4.5.1
What is the difference between
shadowOf(getMainLooper()).idleFor(1, TimeUnit.MILLISECONDS);
and
shadowOf(getMainLooper()).idle();
shadowOf(getMainLooper()).idle(); is causing my test case to fail giving following…

amodkanthe
- 4,345
- 6
- 36
- 77