Wait 250ms before quitting after tests, to avoid DB errors
Not crazy about this, but (at least on my system) it's an easy way to avoid DB errors due to interrupted transaction or query errors after the DB connection was cleaned up. (I can reproduce those pretty reliably right now by running collectionTreeView tests alone.)
This commit is contained in:
parent
72e0124e4e
commit
025411f9b4
1 changed files with 5 additions and 3 deletions
|
@ -13,9 +13,11 @@ function quit(failed) {
|
|||
OS.File.writeAtomic(FileUtils.getFile("ProfD", ["success"]).path, new Uint8Array(0));
|
||||
}
|
||||
if(!ZoteroUnit.noquit) {
|
||||
Components.classes['@mozilla.org/toolkit/app-startup;1'].
|
||||
getService(Components.interfaces.nsIAppStartup).
|
||||
quit(Components.interfaces.nsIAppStartup.eForceQuit);
|
||||
setTimeout(function () {
|
||||
Components.classes['@mozilla.org/toolkit/app-startup;1']
|
||||
.getService(Components.interfaces.nsIAppStartup)
|
||||
.quit(Components.interfaces.nsIAppStartup.eForceQuit);
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue