Bug 1594995 - Part 5: Use a safe-mode database for test_cert_storage_preexisting.js, r=keeler
authorVictor Porof <vporof@mozilla.com>
Wed, 13 Nov 2019 18:52:37 +0000
changeset 501781 e7d3683f6809ec00058aa3d3bc2a707e55b31733
parent 501780 775a103cdc2c26daa4421a6efabeb94efa654b48
child 501782 4d198d162b2aaf7ba6d86fc6c71942b6ee8e43ef
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskeeler
bugs1594995
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1594995 - Part 5: Use a safe-mode database for test_cert_storage_preexisting.js, r=keeler Differential Revision: https://phabricator.services.mozilla.com/D52320
security/manager/ssl/tests/unit/test_cert_storage_preexisting.js
security/manager/ssl/tests/unit/test_cert_storage_preexisting/data.safe.bin
--- a/security/manager/ssl/tests/unit/test_cert_storage_preexisting.js
+++ b/security/manager/ssl/tests/unit/test_cert_storage_preexisting.js
@@ -5,27 +5,26 @@
 "use strict";
 
 // This file tests that cert_storage correctly persists its "has prior data"
 // information across runs of the browser.
 // (The test DB files for this test were created by running the test
 // `test_cert_storage_broken_db.js` and copying them from that test's profile
 // directory.)
 
+/* eslint-disable no-unused-vars */
 add_task(
   {
     skip_if: () => !AppConstants.MOZ_NEW_CERT_STORAGE,
   },
   async function() {
     let dbDirectory = do_get_profile();
     dbDirectory.append("security_state");
-    let dbFile = do_get_file("test_cert_storage_preexisting/data.mdb");
-    dbFile.copyTo(dbDirectory, "data.mdb");
-    let lockFile = do_get_file("test_cert_storage_preexisting/lock.mdb");
-    lockFile.copyTo(dbDirectory, "lock.mdb");
+    let dbFile = do_get_file("test_cert_storage_preexisting/data.safe.bin");
+    dbFile.copyTo(dbDirectory, "data.safe.bin");
 
     let certStorage = Cc["@mozilla.org/security/certstorage;1"].getService(
       Ci.nsICertStorage
     );
     let hasPriorRevocationData = await new Promise(resolve => {
       certStorage.hasPriorData(
         Ci.nsICertStorage.DATA_TYPE_REVOCATION,
         (rv, hasPriorData) => {
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..011ed934842a6e0c32de3afa2651a6ea2966dc93
GIT binary patch
literal 122
zc${NofB;4wC?h$ws3g9)B)=#zJr%@fhKh4S>6FBh#FEN_R7NJ4PDXSoCfriY2q^%q
C(hpSt