提交 d75e13d9 编写于 作者: Z zhangxingxia

update xts

Signed-off-by: Nzhangxingxia <zhangxingxia1@huawei.com>
上级 afc98475
...@@ -26,7 +26,7 @@ import { ...@@ -26,7 +26,7 @@ import {
} from "./Common"; } from "./Common";
describe("storageStatistics", function () { describe("storageStatistics", function () {
/** /**
* @tc.number SUB_DF_VOLUME_GET_TOTAL_SIZE_OF_VOLUME_0000 * @tc.number SUB_DF_VOLUME_GET_TOTAL_SIZE_OF_VOLUME_0000
* @tc.name storage_statistics_test_get_total_size_of_volume_async_000 * @tc.name storage_statistics_test_get_total_size_of_volume_async_000
...@@ -94,8 +94,7 @@ describe("storageStatistics", function () { ...@@ -94,8 +94,7 @@ describe("storageStatistics", function () {
try { try {
let totalSize = await storageStatistics.getTotalSizeOfVolume("1234"); let totalSize = await storageStatistics.getTotalSizeOfVolume("1234");
console.log(`async_002 totalSize ===---=== ${totalSize}`); console.log(`async_002 totalSize ===---=== ${totalSize}`);
// expect(totalSize == -1).assertTrue(); expect(totalSize == -1).assertTrue();
expect(null).assertFail();
done(); done();
} catch (error) { } catch (error) {
console.log("storage_statistics_test_get_total_size_of_volume_async_002 has failed for " + error.message); console.log("storage_statistics_test_get_total_size_of_volume_async_002 has failed for " + error.message);
...@@ -211,8 +210,7 @@ describe("storageStatistics", function () { ...@@ -211,8 +210,7 @@ describe("storageStatistics", function () {
try { try {
let freeSize = await storageStatistics.getFreeSizeOfVolume("1234"); let freeSize = await storageStatistics.getFreeSizeOfVolume("1234");
console.log(`async_002 freeSize ===---=== ${freeSize}`); console.log(`async_002 freeSize ===---=== ${freeSize}`);
// expect(freeSize == -1).assertTrue(); expect(freeSize == -1).assertTrue();
expect(null).assertFail();
done(); done();
} catch (error) { } catch (error) {
console.log("storage_statistics_test_get_free_size_of_volume_async_002 has failed for " + error); console.log("storage_statistics_test_get_free_size_of_volume_async_002 has failed for " + error);
...@@ -310,7 +308,6 @@ describe("storageStatistics", function () { ...@@ -310,7 +308,6 @@ describe("storageStatistics", function () {
} catch (e) { } catch (e) {
console.log("storage_statistics_test_get_bundle_stat_async_001 has failed for " + e); console.log("storage_statistics_test_get_bundle_stat_async_001 has failed for " + e);
expect(null).assertFail(); expect(null).assertFail();
done();
} }
}); });
...@@ -327,9 +324,9 @@ describe("storageStatistics", function () { ...@@ -327,9 +324,9 @@ describe("storageStatistics", function () {
try { try {
await storageStatistics.getBundleStats("packageName"); await storageStatistics.getBundleStats("packageName");
done(); done();
} catch (error) { } catch (e) {
console.log("storage_statistics_test_get_bundle_stat_async_002 has failed for " + error); console.log("storage_statistics_test_get_bundle_stat_async_002 has failed for " + e);
expect(isInclude(error, "Invalid name")).assertTrue(); expect(e.message == "Invalid name").assertTrue();
done(); done();
} }
}); });
...@@ -346,10 +343,9 @@ describe("storageStatistics", function () { ...@@ -346,10 +343,9 @@ describe("storageStatistics", function () {
it("storage_statistics_test_get_bundle_stat_async_003", 0, async function (done) { it("storage_statistics_test_get_bundle_stat_async_003", 0, async function (done) {
try { try {
await storageStatistics.getBundleStats(1); await storageStatistics.getBundleStats(1);
done(); } catch (e) {
} catch (error) { console.log("storage_statistics_test_get_bundle_stat_async_003 has failed for " + e);
console.log("storage_statistics_test_get_bundle_stat_async_003 has failed for " + error); expect(e.message == "Invalid name").assertTrue();
expect(isInclude(error, "Invalid name")).assertTrue();
done(); done();
} }
}); });
...@@ -366,10 +362,9 @@ describe("storageStatistics", function () { ...@@ -366,10 +362,9 @@ describe("storageStatistics", function () {
it("storage_statistics_test_get_bundle_stat_async_004", 0, async function (done) { it("storage_statistics_test_get_bundle_stat_async_004", 0, async function (done) {
try { try {
await storageStatistics.getBundleStats(); await storageStatistics.getBundleStats();
done(); } catch (e) {
} catch (error) { console.log("storage_statistics_test_get_bundle_stat_async_004 has failed for " + e);
console.log("storage_statistics_test_get_bundle_stat_async_004 has failed for " + error); expect(e.message == "Number of arguments unmatched").assertTrue();
expect(isInclude(error, "Number of arguments unmatched")).assertTrue();
done(); done();
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册