提交 e781d6b9 编写于 作者: G gaoxi785

time

Signed-off-by: Ngaoxi785 <gaoxi785@huawei.com>
上级 683ea8ad
...@@ -99,7 +99,6 @@ export default function Telephony_NetManager_NetWorkTest() { ...@@ -99,7 +99,6 @@ export default function Telephony_NetManager_NetWorkTest() {
console.info("NetManager subscribe " + JSON.stringify(data)); console.info("NetManager subscribe " + JSON.stringify(data));
expect(data.type == "none").assertTrue(); expect(data.type == "none").assertTrue();
expect(data.metered == false).assertTrue(); expect(data.metered == false).assertTrue();
done();
}, },
fail: function (data, code) { fail: function (data, code) {
console.log("data:" + JSON.stringify(data) + " code:" + JSON.stringify(code)); console.log("data:" + JSON.stringify(data) + " code:" + JSON.stringify(code));
...@@ -110,7 +109,8 @@ export default function Telephony_NetManager_NetWorkTest() { ...@@ -110,7 +109,8 @@ export default function Telephony_NetManager_NetWorkTest() {
setTimeout(()=>{ setTimeout(()=>{
network.unsubscribe(); network.unsubscribe();
console.info("async function unsubscribe end"); console.info("async function unsubscribe end");
},100); done();
},1500);
}); });
}); });
...@@ -131,7 +131,6 @@ export default function Telephony_NetManager_NetWorkTest() { ...@@ -131,7 +131,6 @@ export default function Telephony_NetManager_NetWorkTest() {
console.info("NetManager subscribe " + JSON.stringify(data)); console.info("NetManager subscribe " + JSON.stringify(data));
expect(data.type == "none").assertTrue(); expect(data.type == "none").assertTrue();
expect(data.metered == false).assertTrue(); expect(data.metered == false).assertTrue();
done();
}, },
fail: function (data, code) { fail: function (data, code) {
console.log("data:" + JSON.stringify(data) + " code:" + JSON.stringify(code)); console.log("data:" + JSON.stringify(data) + " code:" + JSON.stringify(code));
...@@ -142,7 +141,8 @@ export default function Telephony_NetManager_NetWorkTest() { ...@@ -142,7 +141,8 @@ export default function Telephony_NetManager_NetWorkTest() {
setTimeout(()=>{ setTimeout(()=>{
network.unsubscribe(); network.unsubscribe();
console.info("async function unsubscribe end"); console.info("async function unsubscribe end");
},100); done();
},1500);
}); });
}); });
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册