Skip to content
Snippets Groups Projects
Commit 5f84467e authored by Francesco Pham's avatar Francesco Pham
Browse files

openharmony-standard:add actsgetwantalltest-wait-between-testcases.patch


test/xts/acts/ActsGetWantTest: wait 10 seconds between each testcase

sometimes feature abilities fail to start because the previous testcase
still has't completely started or terminated its feature ability.
Adding a 10 seconds wait time between each testcase.

Signed-off-by: default avatarFrancesco Pham <francesco.pham@huawei.com>
parent fd4be14f
No related branches found
No related tags found
1 merge request!101openharmony-standard: add patches to fix segfault, disable graphics, fixing feature abilities timeouts
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
test/xts/acts/ActsGetWantTest: wait 10 seconds between each testcase
sometimes feature abilities fail to start because the previous testcase
still has't completely started or terminated its feature ability.
Adding a 10 seconds wait time between each testcase.
Upstream-Status: Pending
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>
diff --git a/aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js b/aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js
index 81a92cc7e..e75f90039 100644
--- a/aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js
+++ b/aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js
@@ -34,6 +34,14 @@ describe('ActsGetWantTest', function () {
done();
})
+ beforeEach(async (done) => {
+ console.debug("waiting 10 seconds between testcases");
+ setTimeout(function(){
+ console.debug("beforeEach end");
+ done();
+ },10000);
+ })
+
// @tc.number: ACTS_GetWant_0100
// @tc.name: getWant : get want in current ability
// @tc.desc:Start the ability through startabilityforresult,
...@@ -80,6 +80,7 @@ SRC_URI += "file://test-xts-acts-fix-faultloggertest.patch;patchdir=${S}/test/xt ...@@ -80,6 +80,7 @@ SRC_URI += "file://test-xts-acts-fix-faultloggertest.patch;patchdir=${S}/test/xt
SRC_URI += "file://test-xts-acts-fix-hicolliecpptest.patch;patchdir=${S}/test/xts/acts" SRC_URI += "file://test-xts-acts-fix-hicolliecpptest.patch;patchdir=${S}/test/xts/acts"
SRC_URI += "file://ace_engine-disable-create-component.patch;patchdir=${S}/foundation/ace/ace_engine" SRC_URI += "file://ace_engine-disable-create-component.patch;patchdir=${S}/foundation/ace/ace_engine"
SRC_URI += "file://test-xts-acts-increase-testsuite-timeouts.patch;patchdir=${S}/test/xts/acts" SRC_URI += "file://test-xts-acts-increase-testsuite-timeouts.patch;patchdir=${S}/test/xts/acts"
SRC_URI += "file://actsgetwantalltest-wait-between-testcases.patch;patchdir=${S}/test/xts/acts"
inherit python3native gn_base ptest inherit python3native gn_base ptest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment