Include Awaitility in app module and properly fix the added test
This commit is contained in:
parent
ebc0200968
commit
dfcb16d77b
|
@ -186,6 +186,7 @@ dependencies {
|
|||
|
||||
implementation 'com.github.mfietz:fyydlin:v0.3'
|
||||
implementation 'com.github.ByteHamster:SearchPreference:v1.0.8'
|
||||
implementation "org.awaitility:awaitility:$awaitilityVersion"
|
||||
|
||||
androidTestImplementation "com.jayway.android.robotium:robotium-solo:$robotiumSoloVersion"
|
||||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
||||
|
|
|
@ -25,6 +25,8 @@ import de.danoeh.antennapod.core.storage.DBReader;
|
|||
import de.danoeh.antennapod.core.storage.DBWriter;
|
||||
import de.danoeh.antennapod.core.storage.PodDBAdapter;
|
||||
|
||||
import org.awaitility.Awaitility;
|
||||
|
||||
/**
|
||||
* Test class for DBWriter
|
||||
*/
|
||||
|
@ -161,7 +163,7 @@ public class DBWriterTest extends InstrumentationTestCase {
|
|||
assertTrue(queue.size() != 0);
|
||||
|
||||
DBWriter.deleteFeedMediaOfItem(getInstrumentation().getTargetContext(), media.getId());
|
||||
Thread.sleep(200);
|
||||
Awaitility.await().until(() -> dest.exists() == false);
|
||||
media = DBReader.getFeedMedia(media.getId());
|
||||
assertNotNull(media);
|
||||
assertFalse(dest.exists());
|
||||
|
|
|
@ -481,7 +481,7 @@
|
|||
<string name="double_tap_toast">Tap back button again to exit</string>
|
||||
<string name="back_button_go_to_page">Go to page</string>
|
||||
<string name="back_button_go_to_page_title">Select page</string>
|
||||
<string name="pref_delete_removes_from_queue_title">Delete Removes from Queue</string>
|
||||
<string name="pref_delete_removes_from_queue_title">Delete removes from Queue</string>
|
||||
<string name="pref_delete_removes_from_queue_sum">Automatically remove an episode from the queue when it is deleted.</string>
|
||||
|
||||
<!-- Auto-Flattr dialog -->
|
||||
|
|
Loading…
Reference in New Issue