From 76b019c17de6d75c51079e962fab5323289a77d8 Mon Sep 17 00:00:00 2001 From: jiyong Date: Mon, 6 Dec 2021 15:35:26 +0800 Subject: [PATCH] jiyong@huawei.com Signed-off-by: jiyong --- .../src/main/js/test/FeatureAbilityJsunit.test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js b/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js index 9e0b210b9..b2a603467 100644 --- a/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js @@ -75,6 +75,16 @@ var subscriberInfo_ACTS_GetCallingBundle_0100 = { describe('ActsFeatureAbilityTest', function () { + function sleep(delay) { + var start = (new Date()).getTime(); + while ((new Date()).getTime() - start < delay) { + continue; + } + } + beforeEach(() => { + sleep(1000); + }) + /** * @tc.number: ACTS_wantConstant_0100 * @tc.name: wantConstant : Check specific enum -- GitLab