Fix another round of test failures

'blocked' is *not* a fatal situation when opening or deleting databases.
This commit is contained in:
Richard van der Hoff
2017-06-20 17:36:35 +01:00
parent cca891644d
commit ca01589e50
+6 -6
View File
@@ -73,9 +73,9 @@ export default class IndexedDBCryptoStore {
};
req.onblocked = () => {
reject(new Error(
"unable to upgrade indexeddb because it is open elsewhere",
));
console.log(
`can't yet open IndexedDBCryptoStore because it is open elsewhere`,
);
};
req.onerror = (ev) => {
@@ -113,9 +113,9 @@ export default class IndexedDBCryptoStore {
const req = this._indexedDB.deleteDatabase(this._dbName);
req.onblocked = () => {
reject(new Error(
"unable to delete indexeddb because it is open elsewhere",
));
console.log(
`can't yet delete IndexedDBCryptoStore because it is open elsewhere`,
);
};
req.onerror = (ev) => {