mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Backed out 1 changesets (bug 1413989) for ESLint failure "browser/components/migration/tests/unit/test_MigrationUtils_timedRetry.js" r=backout on a CLOSED TREE
Backed out changeset 7d8c4617ad28 (bug 1413989)
This commit is contained in:
parent
eac54e955c
commit
7140a8e634
@ -35,8 +35,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "TelemetryStopwatch",
|
|||||||
"resource://gre/modules/TelemetryStopwatch.jsm");
|
"resource://gre/modules/TelemetryStopwatch.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "WindowsRegistry",
|
XPCOMUtils.defineLazyModuleGetter(this, "WindowsRegistry",
|
||||||
"resource://gre/modules/WindowsRegistry.jsm");
|
"resource://gre/modules/WindowsRegistry.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "setTimeout",
|
|
||||||
"resource://gre/modules/Timer.jsm");
|
|
||||||
|
|
||||||
var gMigrators = null;
|
var gMigrators = null;
|
||||||
var gProfileStartup = null;
|
var gProfileStartup = null;
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "OS",
|
|
||||||
"resource://gre/modules/osfile.jsm");
|
|
||||||
|
|
||||||
let tmpFile = FileUtils.getDir("TmpD", [], true);
|
|
||||||
let dbConn;
|
|
||||||
|
|
||||||
add_task(async function setup() {
|
|
||||||
tmpFile.append("TestDB");
|
|
||||||
dbConn = await Sqlite.openConnection({ path: tmpFile.path });
|
|
||||||
|
|
||||||
do_register_cleanup(() => {
|
|
||||||
dbConn.close();
|
|
||||||
OS.File.remove(tmpFile.path);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
add_task(async function testgetRowsFromDBWithoutLocksRetries() {
|
|
||||||
let promise = MigrationUtils.getRowsFromDBWithoutLocks(tmpFile.path,
|
|
||||||
"Temp DB",
|
|
||||||
"SELECT * FROM moz_temp_table")
|
|
||||||
await new Promise(resolve => do_timeout(50, resolve));
|
|
||||||
dbConn.execute("CREATE TABLE moz_temp_table (id INTEGER PRIMARY KEY)");
|
|
||||||
await promise;
|
|
||||||
});
|
|
@ -23,6 +23,5 @@ skip-if = !(os == "win" && bits == 64) # bug 1392396
|
|||||||
skip-if = os != "win"
|
skip-if = os != "win"
|
||||||
[test_IE7_passwords.js]
|
[test_IE7_passwords.js]
|
||||||
skip-if = os != "win"
|
skip-if = os != "win"
|
||||||
[test_MigrationUtils_timedRetry.js]
|
|
||||||
[test_Safari_bookmarks.js]
|
[test_Safari_bookmarks.js]
|
||||||
skip-if = os != "mac"
|
skip-if = os != "mac"
|
||||||
|
Loading…
Reference in New Issue
Block a user