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

openharmony-standard: testRdbStoreUpdate0001-await-updatePromise.patch


adding test-xts-acts-testRdbStoreUpdate0001-await-updatePromise.patch and apply to test/xts/acts .

```
The testRdbStoreUpdate0001 testcase which is part of ActsAppdatamagrJsTest
sometimes fails (in our case on raspberrypi4-64). The reason is that
the values in rdbStore are inspected before the update is completed.
The `await updatePromise` command that is clearly needed was commented out
for some unknown reason. Reintroducing the await command to avoid race
conditions.
```

Signed-off-by: default avatarFrancesco Pham <francesco.pham@huawei.com>
parent 7c9dbcd3
No related branches found
No related tags found
1 merge request!116openharmony-standard: raspberrypi4-64 support
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
The testRdbStoreUpdate0001 testcase which is part of ActsAppdatamagrJsTest
sometimes fails (in our case on raspberrypi4-64). The reason is that
the values in rdbStore are inspected before the update is completed.
The `await updatePromise` command that is clearly needed was commented out
for some unknown reason. Reintroducing the await command to avoid race
conditions.
Apply to test/xts/acts
Upstream-Status: Pending
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>
diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreUpdateJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreUpdateJsunit.test.js
index ce3da461e..b3db7a2ae 100644
--- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreUpdateJsunit.test.js
+++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreUpdateJsunit.test.js
@@ -88,7 +88,7 @@ describe('rdbStoreUpdateTest', function () {
console.log(TAG + "update error");
expect(null).assertFail();
})
- //await updatePromise
+ await updatePromise
}
//查询
{
@@ -262,4 +262,4 @@ describe('rdbStoreUpdateTest', function () {
})
console.log(TAG + "*************Unit Test End*************");
})
-
\ No newline at end of file
+
...@@ -100,6 +100,7 @@ SRC_URI += "file://test-xts-acts-fix-hicolliecpptest.patch;patchdir=${S}/test/xt ...@@ -100,6 +100,7 @@ SRC_URI += "file://test-xts-acts-fix-hicolliecpptest.patch;patchdir=${S}/test/xt
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://foundation_ace_engine-race-condition-workaround.patch;patchdir=${S}/foundation/ace/ace_engine" SRC_URI += "file://foundation_ace_engine-race-condition-workaround.patch;patchdir=${S}/foundation/ace/ace_engine"
SRC_URI += "file://test-xts-acts-testRdbStoreUpdate0001-await-updatePromise.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