Allow the await() to run longer...

Forgot how slow the emulator was, this is a bit ridiculous.
ugly-unit-test
Bradlee Speice 2014-05-30 23:33:50 -04:00
parent ed219bc8a4
commit ca4cff2adf
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class DownloadActivityTest extends InstrumentationTestCase {
// Need to make sure we've refreshed the refreshmanager first
Installer i = (Installer) dm.getInstallers().values().toArray()[0];
final Book testBook = i.getBooks().get(0);
await().until(new Callable<Boolean>() {
await().atMost(30, TimeUnit.SECONDS).until(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
return rm.installerFromBook(testBook) != null;