From 602f2d395ee706b6f1e22f0ec22f2b03477f8122 Mon Sep 17 00:00:00 2001 From: qiaozzzh Date: Thu, 29 Sep 2022 20:32:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90OpenHarmony=203.2.7.5=E3=80=91?= =?UTF-8?q?=E3=80=90=E5=AE=89=E5=85=A8=E5=AD=90=E7=B3=BB=E7=BB=9F=E3=80=91?= =?UTF-8?q?=E3=80=90RK3568=E3=80=91ActsCryptoFrameworkJSNormalTest?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A5=97=E8=A1=A5=E5=85=85=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qiaozzzh Change-Id: I8e1f82a06d0c1de47ccdd130abcfa35ea48d8513 --- security/cryptoFramework/src/main/js/test/List.test.js | 2 -- .../js/test/utils/securityrandom/publicSecurityRandomPromise.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/security/cryptoFramework/src/main/js/test/List.test.js b/security/cryptoFramework/src/main/js/test/List.test.js index 089124d8e..e3c3c2472 100644 --- a/security/cryptoFramework/src/main/js/test/List.test.js +++ b/security/cryptoFramework/src/main/js/test/List.test.js @@ -15,13 +15,11 @@ import SecurityRandomJsunit from "./SecurityRandom.test.js"; import DigestAlgorithmJsunit from "./DigestAlgorithm.test.js"; -import CertificateJsunit from "./Certificate.test.js"; import SymmetricCryptographyJsunit from "./SymmetricCryptography.test.js"; import AsymmetricCryptographyJsunit from "./AsymmetricCryptography.test.js"; export default function testsuite() { - CertificateJsunit(); DigestAlgorithmJsunit(); SymmetricCryptographyJsunit(); AsymmetricCryptographyJsunit(); diff --git a/security/cryptoFramework/src/main/js/test/utils/securityrandom/publicSecurityRandomPromise.js b/security/cryptoFramework/src/main/js/test/utils/securityrandom/publicSecurityRandomPromise.js index 198d77ba9..e85db5a61 100644 --- a/security/cryptoFramework/src/main/js/test/utils/securityrandom/publicSecurityRandomPromise.js +++ b/security/cryptoFramework/src/main/js/test/utils/securityrandom/publicSecurityRandomPromise.js @@ -48,7 +48,7 @@ async function testSecurityRandomEnumPromise() { expect(401).assertEqual(cryptoFramework.Result.INVALID_PARAMS); expect(801).assertEqual(cryptoFramework.Result.NOT_SUPPORT); expect(17620001).assertEqual(cryptoFramework.Result.ERR_OUT_OF_MEMORY); - expect(17620002).assertEqual(cryptoFramework.Result.ERR_INTERNAL_ERROR); + expect(17620002).assertEqual(cryptoFramework.Result.ERR_EXTERNAL_ERROR); expect(17630001).assertEqual(cryptoFramework.Result.ERR_CRYPTO_OPERATION); expect(17630002).assertEqual(cryptoFramework.Result.ERR_CERT_SIGNATURE_FAILURE); expect(17630003).assertEqual(cryptoFramework.Result.ERR_CERT_NOT_YET_VALID); -- GitLab