diff --git a/distributeddatamgr/jstest/distributed_kv_store/client/hap/src/main/js/test/KvStoreSecurityLevelS1Jsunit.test.js b/distributeddatamgr/jstest/distributed_kv_store/client/hap/src/main/js/test/KvStoreSecurityLevelS1Jsunit.test.js index fb28531..97f88e6 100644 --- a/distributeddatamgr/jstest/distributed_kv_store/client/hap/src/main/js/test/KvStoreSecurityLevelS1Jsunit.test.js +++ b/distributeddatamgr/jstest/distributed_kv_store/client/hap/src/main/js/test/KvStoreSecurityLevelS1Jsunit.test.js @@ -184,6 +184,7 @@ export default function kvSyncTestS1() { } catch (err) { console.error('catch afterEach err:' + `, error code is ${err.code}, message is ${err.message}`); + expect(null).assertFail(); done(); } diff --git a/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/ets/test/KvStoreSecurityLevelS1Etsunit.test.ets b/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/ets/test/KvStoreSecurityLevelS1Etsunit.test.ets index 257a410..dfccc2a 100644 --- a/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/ets/test/KvStoreSecurityLevelS1Etsunit.test.ets +++ b/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/ets/test/KvStoreSecurityLevelS1Etsunit.test.ets @@ -190,6 +190,7 @@ export default function kvSyncTestS1Ets() { } catch (err) { console.error('catch afterEach err:' + `, error code is ${err.code}, message is ${err.message}`); + expect(null).assertFail(); done(); } diff --git a/testtools/disetsTest/server/service.ets b/testtools/disetsTest/server/service.ets index b5e34d5..dc90639 100644 --- a/testtools/disetsTest/server/service.ets +++ b/testtools/disetsTest/server/service.ets @@ -52,7 +52,7 @@ export default class Stub extends rpc.RemoteObject { resultCall._resultCode = -1; resultCall._result = -1; } - console.log(logTag + 'The server's writeSequenceable result is ' + JSON.stringify(resultCall)); + console.log(logTag + "The server's writeSequenceable result is ' + JSON.stringify(resultCall)"); testBundle._apiResult=JSON.stringify(resultCall); console.log(logTag + ' The testBundle is ' + JSON.stringify(testBundle)); diff --git a/testtools/disjsTest/server/service.js b/testtools/disjsTest/server/service.js index 63947cc..35d4bae 100644 --- a/testtools/disjsTest/server/service.js +++ b/testtools/disjsTest/server/service.js @@ -52,7 +52,7 @@ export default class Stub extends rpc.RemoteObject { resultCall._resultCode = -1; resultCall._result = -1; } - console.log(logTag + ' The server's writeSequenceable result is ' + JSON.stringify(resultCall)); + console.log(logTag + " The server's writeSequenceable result is ' + JSON.stringify(resultCall)"); testBundle._apiResult=JSON.stringify(resultCall); console.log(logTag + ' The testBundle is ' + JSON.stringify(testBundle));