diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsFormsInfoTest.test.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsFormsInfoTest.test.js index 39dda2fb622f7e2a84f61142461908539c858036..571c48527d46f388412ca25efdc9226f1517b933 100644 --- a/appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsFormsInfoTest.test.js +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsFormsInfoTest.test.js @@ -1675,9 +1675,10 @@ describe('ActsBmsFormsInfoTest', function () { * @tc.desc: get the abilityIcon */ it('bms_getAbilityIcon_0200', 0, async function (done) { - let pixelmap = await bundle.getAbilityIcon(BUNDLE_NAME6, ABILITIY_NAME) - console.log('bms_getAbilityIcon_0200 success: ' + pixelmap); - expect(pixelmap !== null).assertTrue() - done() + bundle.getAbilityIcon(BUNDLE_NAME6, ABILITIY_NAME, (err, pixelmap) => { + expect(err).assertFail() + expect(pixelmap !== null).assertTrue() + done() + }) }) }) \ No newline at end of file