提交 205334d0 编写于 作者: L liangzhenyu123

用例时效问题优化

Signed-off-by: Nliangzhenyu123 <liangzhenyu6@huawei.com>
上级 ddad7ec2
...@@ -168,14 +168,10 @@ describe('rdbStoreBackupRestorePromiseTest', function () { ...@@ -168,14 +168,10 @@ describe('rdbStoreBackupRestorePromiseTest', function () {
try { try {
console.info(TAG + "After restore resultSet query done") console.info(TAG + "After restore resultSet query done")
resultSet.goToFirstRow(); resultSet.goToFirstRow();
// expect(true).assertEqual(resultSet.goToFirstRow()) expect(true).assertEqual(resultSet.goToFirstRow())
console.info("RdbBackupRestoreTest_0010 goto first row success")
const id = resultSet.getLong(resultSet.getColumnIndex("id")) const id = resultSet.getLong(resultSet.getColumnIndex("id"))
console.info("RdbBackupRestoreTest_0010 get dolumnindex id success")
const name = resultSet.getString(resultSet.getColumnIndex("name")) const name = resultSet.getString(resultSet.getColumnIndex("name"))
console.info("RdbBackupRestoreTest_0010 get dolumnindex name success")
const blobType = resultSet.getBlob(resultSet.getColumnIndex("blobType")) const blobType = resultSet.getBlob(resultSet.getColumnIndex("blobType"))
console.info(`RdbBackupRestoreTest_0010 id is ${id},name id ${name},blobType is ${blobType[0]}`)
expect(1).assertEqual(id) expect(1).assertEqual(id)
expect("zhangsan").assertEqual(name) expect("zhangsan").assertEqual(name)
expect(1).assertEqual(blobType[0]) expect(1).assertEqual(blobType[0])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册