提交 f94dc22f 编写于 作者: L liuhaonan2

<liuhaonan8@huawei.com>

Signed-off-by: Nliuhaonan2 <liuhaonan8@huawei.com>
上级 fc48ccb8
......@@ -3,7 +3,6 @@
"driver": {
"type": "OHJSUnitTest",
"test-timeout": "1200000",
"testcase-timeout": 60000,
"bundle-name": "ohos.acts.distributedKvStore",
"package-name": "ohos.acts.distributedKvStore",
"shell-timeout": "60000"
......
......@@ -184,7 +184,6 @@ describe('kvStoreBackupCallbackJsunittest', function () {
console.info('Test beforeAll: Prerequisites at the test suite level, ' +
'which are executed before t he test suite is executed.');
await publicgetKvStore(optionLock);
await sleep(5000);
console.info("Test kvstore = " + kvStore)
})
beforeEach( async function () {
......@@ -195,15 +194,14 @@ describe('kvStoreBackupCallbackJsunittest', function () {
afterEach( async function () {
console.info('afterEach: Test case-level clearance conditions, ' +
'which are executed after each test case is executed.');
publicdeleteBackup(kvStore,files);
publiccloseKvStore();
await publicdeleteBackup(kvStore,files);
await publiccloseKvStore();
files = []
await sleep(5000);
})
afterAll(function () {
afterAll(async function () {
console.info('afterAll: Test suite-level cleanup condition, ' +
'which is executed after the test suite is executed');
publiccloseKvStore();
await publiccloseKvStore();
kvManager = null;
console.info("Test kvstore = " + kvStore)
})
......
......@@ -175,7 +175,6 @@ describe('kvStoreBackupPromiseJsunittest', function () {
console.info('Test beforeAll: Prerequisites at the test suite level, ' +
'which are executed before the test suite is executed.');
await publicgetKvStore(optionLock);
await sleep(5000);
console.info("Test kvstore = " + kvStore)
})
beforeEach(function () {
......@@ -185,13 +184,12 @@ describe('kvStoreBackupPromiseJsunittest', function () {
afterEach( async function () {
console.info('afterEach: Test case-level clearance conditions, ' +
'which are executed after each test case is executed.');
publicdeleteBackup(kvStore,files);
await sleep(5000);
await publicdeleteBackup(kvStore,files);
})
afterAll( async function () {
console.info('afterAll: Test suite-level cleanup condition, ' +
'which is executed after the test suite is executed');
publiccloseKvStore();
await publiccloseKvStore();
kvManager = null;
console.info("Test kvstore = " + kvStore)
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册