From a0813db1895162bab1811277930abb53c5e19539 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 5 Jun 2021 18:57:23 +0200 Subject: [PATCH] Let test wait until database operation is completed --- .../java/de/danoeh/antennapod/core/storage/DbWriterTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/de/danoeh/antennapod/core/storage/DbWriterTest.java b/core/src/test/java/de/danoeh/antennapod/core/storage/DbWriterTest.java index e38d4adb7..f70ed6e29 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/storage/DbWriterTest.java +++ b/core/src/test/java/de/danoeh/antennapod/core/storage/DbWriterTest.java @@ -800,7 +800,7 @@ public class DbWriterTest { assertTrue(item.getId() != 0); } - DBWriter.removeAllNewFlags(); + DBWriter.removeAllNewFlags().get(); List loadedItems = DBReader.getFeedItemList(feed); for (FeedItem item : loadedItems) { assertFalse(item.isNew());