From ca4cff2adfd7bb623392e7ceba841e0e55e67251 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Fri, 30 May 2014 23:33:50 -0400 Subject: [PATCH] Allow the await() to run longer... Forgot how slow the emulator was, this is a bit ridiculous. --- .../org/bspeice/minimalbible/test/DownloadActivityTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java b/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java index 8dcf0a3..8d31001 100644 --- a/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java +++ b/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java @@ -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() { + await().atMost(30, TimeUnit.SECONDS).until(new Callable() { @Override public Boolean call() throws Exception { return rm.installerFromBook(testBook) != null;