Bug 1405709 - Add missing await to browser.pkcs11 test suite r=zombie
authorWouter Verhelst <w@uter.be>
Wed, 04 Oct 2017 17:39:36 +0200
changeset 384759 f5d73b59a8da
parent 384758 680e3de137fb
child 384760 e41db689a662
push id52766
push userryanvm@gmail.com
push dateFri, 06 Oct 2017 12:24:22 +0000
treeherderautoland@f5d73b59a8da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerszombie
bugs1405709
milestone58.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 1405709 - Add missing await to browser.pkcs11 test suite r=zombie MozReview-Commit-ID: GjQu8QzwHkZ
browser/components/extensions/test/xpcshell/test_ext_pkcs11_management.js
--- a/browser/components/extensions/test/xpcshell/test_ext_pkcs11_management.js
+++ b/browser/components/extensions/test/xpcshell/test_ext_pkcs11_management.js
@@ -91,17 +91,17 @@ async function setupManifests(modules) {
 }
 
 add_task(async function test_pkcs11() {
   async function background() {
     try {
       let isInstalled = await browser.pkcs11.isModuleInstalled("testmodule");
       browser.test.assertFalse(isInstalled, "PKCS#11 module is not installed before we install it");
       await browser.pkcs11.installModule("testmodule", 0);
-      isInstalled = browser.pkcs11.isModuleInstalled("testmodule");
+      isInstalled = await browser.pkcs11.isModuleInstalled("testmodule");
       browser.test.assertTrue(isInstalled, "PKCS#11 module is installed after we install it");
       let slots = await browser.pkcs11.getModuleSlots("testmodule");
       browser.test.assertEq("Test PKCS11 Slot", slots[0].name, "The first slot name matches the expected name");
       browser.test.assertEq("Test PKCS11 Slot 二", slots[1].name, "The second slot name matches the expected name");
       browser.test.assertTrue(slots[1].token, "The second slot has a token");
       browser.test.assertEq("Test PKCS11 Tokeñ 2 Label", slots[1].token.name, "The token name matches the expected name");
       browser.test.assertEq("Test PKCS11 Manufacturer ID", slots[1].token.manufacturer, "The token manufacturer matches the expected manufacturer");
       browser.test.assertEq("0.0", slots[1].token.HWVersion, "The token hardware version matches the expected version");