提交 3b965ffe 编写于 作者: C chenkai008

修改执行顺序

Signed-off-by: Nchenkai008 <chenkai154@huawei.com>
上级 18b25b0c
......@@ -2805,27 +2805,25 @@ describe('fileTest', function () {
uri: 'internal://cache/File_Copy_005d',
success: function () {
console.log('File_Copy_005 call mkdir success.');
done();
file.copy({
srcUri: 'internal://cache/File_Copy_005d',
dstUri: 'internal://cache/File_Copy_005d_1',
success: function () {
console.log('File_Copy_005 call copy success.');
expect(null).assertFail();
},
fail: function (data, code) {
console.log('File_Copy_005 , code: ' + code + ', data: ' + data);
expect(code == 300).assertTrue();
done();
},
});
},
fail: function (data, code) {
console.error('File_Copy_005 call mkdir fail, code: ' + code + ', data: ' + data);
expect(null).assertFail();
},
});
sleep(2);
file.copy({
srcUri: 'internal://cache/File_Copy_005d',
dstUri: 'internal://cache/File_Copy_005d_1',
success: function () {
console.log('File_Copy_005 call copy success.');
expect(null).assertFail();
},
fail: function (data, code) {
console.log('File_Copy_005 , code: ' + code + ', data: ' + data);
expect(code == 300).assertTrue();
done();
},
});
});
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册