Bug 1356079 - Ensure the queried db snapshot is current in test_root_icons.js. r=adw

MozReview-Commit-ID: FTDwcFkbiOL

--HG--
extra : rebase_source : 9deaf76548426b2b0b2413d0161959c69bcac583
This commit is contained in:
Marco Bonardo 2017-04-27 09:57:34 +02:00
parent 1a5d673f57
commit baa6ae6f16

View File

@ -19,6 +19,7 @@ add_task(function* () {
faviconURI.spec);
// Check database entries.
yield PlacesTestUtils.promiseAsyncUpdates();
let db = yield PlacesUtils.promiseDBConnection();
let rows = yield db.execute("SELECT * FROM moz_icons");
Assert.equal(rows.length, 1, "There should only be 1 icon entry");
@ -70,6 +71,7 @@ add_task(function* test_removePagesByTimeframe() {
);
// Check database entries.
yield PlacesTestUtils.promiseAsyncUpdates();
let db = yield PlacesUtils.promiseDBConnection();
let rows = yield db.execute("SELECT * FROM moz_icons");
Assert.equal(rows.length, 1, "There should only be 1 icon entry");