提交 65b87023 编写于 作者: Z zhangxingxia

add statistics xts

Signed-off-by: Nzhangxingxia <zhangxingxia1@huawei.com>
上级 7420fa24
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册