From b4bce9543e0c0f64923b662904b9b462fefdbd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=B5=B7?= Date: Tue, 5 Jul 2022 15:17:04 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=90security=E3=80=91=E3=80=90master?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E6=94=B9access=5Ftoken=E7=94=A8=E4=BE=8Buser?= =?UTF-8?q?Id=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F=20Signed-off-by:jinhai2?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/js/default/test/AccessToken.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/access_token/AccessTokenTest_Normal_js/src/main/js/default/test/AccessToken.test.js b/security/access_token/AccessTokenTest_Normal_js/src/main/js/default/test/AccessToken.test.js index 6e391a8c4..e1aba5080 100755 --- a/security/access_token/AccessTokenTest_Normal_js/src/main/js/default/test/AccessToken.test.js +++ b/security/access_token/AccessTokenTest_Normal_js/src/main/js/default/test/AccessToken.test.js @@ -41,8 +41,8 @@ describe('AccessTokenTest', function () { console.info('##########start AccessTokenTest'); beforeAll(async function (done){ var accountManager = osAccount.getAccountManager(); - var localled = await accountManager.getOsAccountTypeFromProcess(); - var appInfo = await bundle.getApplicationInfo('ohos.acts.security.access_token.normal', 0, localled); + var userId = await accountManager.getOsAccountLocalIdFromProcess(); + var appInfo = await bundle.getApplicationInfo('ohos.acts.security.access_token.normal', 0, userId); tokenID = appInfo.accessTokenId; console.info("AccessTokenTest accessTokenId:" + appInfo.accessTokenId + ", name:" + appInfo.name + ", bundleName:" + appInfo.bundleName) @@ -82,7 +82,7 @@ describe('AccessTokenTest', function () { /** * @tc.number Test_verifyAccessToken_002 * @tc.name Test atManager.verifyAccessToken. - * @tc.desc After the installation, system_grant permission is not granted by default(Promise). + * @tc.desc After the installation, system_grant permission is granted by default(Promise). */ it('Test_verifyAccessToken_002', 0, async function(done){ console.info("Test_verifyAccessToken_002 start"); -- GitLab