update distributedhardware/distributeddevicejstest/src/main/js/test/distributedDevice.test.js.

Signed-off-by: bjliang <bianjianliang1@huawei.com>
This commit is contained in:
bjliang 2023-08-24 11:23:49 +00:00 committed by Gitee
parent 0008f2cf38
commit 1ea9c4b697
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -89,7 +89,7 @@ export default function distributedDeviceManager() {
it("SUB_DH_createDeviceManager_0001", 0, async function (done) { it("SUB_DH_createDeviceManager_0001", 0, async function (done) {
console.info("-----------------SUB_DH_createDeviceManager_0001 start------------------------"); console.info("-----------------SUB_DH_createDeviceManager_0001 start------------------------");
try { try {
dmInstance = deviceManager.createDeviceManager("com.ohos.distributeddevicejstest"); dmInstance = deviceManager.createDeviceManager("com.ohos.distributedscreenjstest");
if (!dmInstance) { if (!dmInstance) {
console.error("createDeviceManager errCode:" + err.code + ",errMessage:" + err.message); console.error("createDeviceManager errCode:" + err.code + ",errMessage:" + err.message);
expect(false).assertFail(); expect(false).assertFail();
@ -464,7 +464,7 @@ export default function distributedDeviceManager() {
it("SUB_DH_releaseDeviceManager_0015", 0, async function (done) { it("SUB_DH_releaseDeviceManager_0015", 0, async function (done) {
console.info("-----------------SUB_DH_releaseDeviceManager_0015 start------------------------"); console.info("-----------------SUB_DH_releaseDeviceManager_0015 start------------------------");
var mFilterOption = { var mFilterOption = {
targetPkgName: "com.ohos.distributeddevicejstest", targetPkgName: "com.ohos.distributedscreenjstest",
sortType: 0, sortType: 0,
filter: JSON.stringify({ filter: JSON.stringify({
key: 'test', key: 'test',