mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 1629273 - Fix intermittent failure in test_permmanager_load_invalid_entries.js, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70639 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
67d6bdefae
commit
68d9c71f19
@ -5,6 +5,12 @@ var DEBUG_TEST = false;
|
||||
function run_test() {
|
||||
// Setup a profile directory.
|
||||
var dir = do_get_profile();
|
||||
|
||||
// We need to execute a pm method to be sure that the DB is fully
|
||||
// initialized.
|
||||
var pm = Services.perms;
|
||||
Assert.equal(pm.all.length, 0, "No cookies");
|
||||
|
||||
// Get the db file.
|
||||
var file = dir.clone();
|
||||
file.append("permissions.sqlite");
|
||||
@ -220,9 +226,6 @@ function run_test() {
|
||||
// This will force the permission-manager to reload the data.
|
||||
Services.obs.notifyObservers(null, "testonly-reload-permissions-from-disk");
|
||||
|
||||
// Initialize the permission manager service
|
||||
var pm = Services.perms;
|
||||
|
||||
// Let's do something in order to be sure the DB is read.
|
||||
Assert.greater(pm.all.length, 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user