Let test wait until database operation is completed

This commit is contained in:
ByteHamster 2021-06-05 18:57:23 +02:00
parent b35eaa4fa5
commit a0813db189
1 changed files with 1 additions and 1 deletions

View File

@ -800,7 +800,7 @@ public class DbWriterTest {
assertTrue(item.getId() != 0);
}
DBWriter.removeAllNewFlags();
DBWriter.removeAllNewFlags().get();
List<FeedItem> loadedItems = DBReader.getFeedItemList(feed);
for (FeedItem item : loadedItems) {
assertFalse(item.isNew());