diff --git a/storage/storagestatisticsjstest/entry/src/main/ets/test/StorageStatistics.test.ets b/storage/storagestatisticsjstest/entry/src/main/ets/test/StorageStatistics.test.ets index 73a1fff56d29c73e2217e61b8bbedcb3a9d00dc3..1135b7de3226a9b5fee24911e76419d7ffad3275 100644 --- a/storage/storagestatisticsjstest/entry/src/main/ets/test/StorageStatistics.test.ets +++ b/storage/storagestatisticsjstest/entry/src/main/ets/test/StorageStatistics.test.ets @@ -124,11 +124,15 @@ export default function storageStatisticsTest() { }; let tasks = [delay(), delay(), delay(), delay()]; Promise.all(tasks).then(results => { - let flag = !results.some(function(value){ + let isNotNull = results.every(bundleStat => { + return bundleStat != null; + }); + let flag = !results.some(value => { return JSON.stringify(value) !== JSON.stringify(results[0]); }) expect(results.length == tasks.length).assertTrue(); expect(flag).assertTrue(); + expect(isNotNull).assertTrue(); done(); }); } catch (error) {