提交 fcc59e69 编写于 作者: L lihao

update

Signed-off-by: Nlihao <lihao334@huawei.com>
上级 7c2aae58
...@@ -133,6 +133,7 @@ ...@@ -133,6 +133,7 @@
returnValue = value.netId; returnValue = value.netId;
} }
}); });
console.info("netAvailable end");
netConn.on('netCapabilitiesChange', (value) => { netConn.on('netCapabilitiesChange', (value) => {
if (value === undefined) { if (value === undefined) {
console.info("${caseName} netCapabilitiesChange fail"); console.info("${caseName} netCapabilitiesChange fail");
...@@ -144,6 +145,7 @@ ...@@ -144,6 +145,7 @@
} }
}); });
console.info("netCapabilitiesChange end");
netConn.on('netConnectionPropertiesChange', (value) => { netConn.on('netConnectionPropertiesChange', (value) => {
if (value === undefined) { if (value === undefined) {
console.info("${caseName} netConnectionPropertiesChange fail"); console.info("${caseName} netConnectionPropertiesChange fail");
...@@ -153,6 +155,7 @@ ...@@ -153,6 +155,7 @@
console.info("${caseName} netConnectionPropertiesChange handle =:" + value.netHandle.netId); console.info("${caseName} netConnectionPropertiesChange handle =:" + value.netHandle.netId);
} }
}); });
console.info("netConnectionPropertiesChange end");
netConn.on('netLost', (value) => { netConn.on('netLost', (value) => {
if (error) { if (error) {
console.info("${caseName} netLost fail"); console.info("${caseName} netLost fail");
...@@ -162,6 +165,7 @@ ...@@ -162,6 +165,7 @@
console.info("${caseName} netLost : " + value.netId); console.info("${caseName} netLost : " + value.netId);
} }
}); });
console.info("netLost end");
netConn.on('netUnavailable', (value) => { netConn.on('netUnavailable', (value) => {
if (error) { if (error) {
console.info("${caseName} netUnavailable fail"); console.info("${caseName} netUnavailable fail");
...@@ -171,6 +175,7 @@ ...@@ -171,6 +175,7 @@
console.info("${caseName} netUnavailable: " + value.netId); console.info("${caseName} netUnavailable: " + value.netId);
} }
}); });
console.info("netUnavailable end");
netConn.on('netBlockStatuschange', (value) => { netConn.on('netBlockStatuschange', (value) => {
if (error) { if (error) {
console.info("${caseName} netBlockStatusChange fail"); console.info("${caseName} netBlockStatusChange fail");
...@@ -180,11 +185,13 @@ ...@@ -180,11 +185,13 @@
console.info("${caseName} netBlockStatusChange : " + value.netHandle.netId); console.info("${caseName} netBlockStatusChange : " + value.netHandle.netId);
} }
}); });
console.info("netBlockStatuschange end");
netConn.register((error) => { netConn.register((error) => {
if (error) { if (error) {
console.info("${caseName} register fail: ${error}"); console.info("${caseName} register fail: ${error}");
} }
}); });
console.info("register end");
await sleep(DELAY); await sleep(DELAY);
netConn.unregister((error) => { netConn.unregister((error) => {
if (error) { if (error) {
...@@ -192,6 +199,7 @@ ...@@ -192,6 +199,7 @@
done(); done();
} }
}); });
console.info("unregister end");
done(); done();
}); });
...@@ -1304,7 +1312,7 @@ ...@@ -1304,7 +1312,7 @@
} else { } else {
console.info("${caseName} netAvailable : " + value.netId); console.info("${caseName} netAvailable : " + value.netId);
VALUE = value.netId; VALUE = value.netId;
expect(VALUE).assertEqual(ETH_100); expect(VALUE >= ETH_100).assertTrue();
} }
}); });
netConn.on('netBlockStatusChange', (error, value) => { netConn.on('netBlockStatusChange', (error, value) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册