Merge pull request #5209 from ByteHamster/wait-for-new

Let test wait until database operation is completed
This commit is contained in:
ByteHamster 2021-06-05 19:17:55 +02:00 committed by GitHub
commit 4093dd6433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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