Merge pull request #5209 from ByteHamster/wait-for-new
Let test wait until database operation is completed
This commit is contained in:
commit
4093dd6433
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue