Open Bug 1632145 Opened 5 years ago

Prevent errors being thrown during test runs

Categories

(Firefox :: Remote Settings Client, task)

task

Tracking

()

People

(Reporter: daleharvey, Unassigned)

Details

Running

$ ./mach test toolkit/components/search/tests/xpcshell/test_webextensions_install.js

gives me

 0:10.69 INFO "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB: blocklists/plugins list() IndexedDB:  execute() The application is shutting down" {file: "resource://services-settings/Database.jsm" line: 28}]
IndexedDBError@resource://services-settings/Database.jsm:28:5
list@resource://services-settings/Database.jsm:88:13
async*get@resource://services-settings/RemoteSettingsClient.jsm:327:32
async*_updateEntries@resource://gre/modules/Blocklist.jsm:656:40
_ensureEntries@resource://gre/modules/Blocklist.jsm:640:18
async*getState@resource://gre/modules/Blocklist.jsm:907:16
getPluginBlocklistState@resource://gre/modules/Blocklist.jsm:1448:30
getPluginBlocklistState@resource://gre/modules/addonManager.js:375:24
_execute_test@/Users/dale/src/gecko/testing/xpcshell/head.js:648:16
@-e:1:1
"

In the shell, the error does not effect the test in any way, but it makes the output confusing particularly when the test does have a failure and we are trying to locate it, so attempting to trim down the tests logging unnecessary errors

You need to log in before you can comment on or make changes to this bug.