提交 b4b70bf1 编写于 作者: G gaoxi

case update

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 ebf28a06
...@@ -1568,8 +1568,8 @@ ...@@ -1568,8 +1568,8 @@
} }
let netId = 0; let netId = 0;
let netConn = connection.createNetConnection(netSpecifier, TIMEOUT); let netConn = connection.createNetConnection(netSpecifier, TIMEOUT);
netConn.on('netAvailable', (error, value) => { netConn.on('netAvailable', (value) => {
if (error) { if (value === undefined) {
console.info(`${caseName} register fail: ${error}`); console.info(`${caseName} register fail: ${error}`);
expect().assertFail(); expect().assertFail();
done(); done();
...@@ -1727,8 +1727,8 @@ ...@@ -1727,8 +1727,8 @@
}, bearerPrivateIdentifier: '123' }, bearerPrivateIdentifier: '123'
} }
let netConn = connection.createNetConnection(netSpecifier, TIMEOUT); let netConn = connection.createNetConnection(netSpecifier, TIMEOUT);
netConn.on('netAvailable', (error, value) => { netConn.on('netAvailable', (value) => {
if (error) { if (value === undefined) {
console.info(`${caseName} register fail: ${error}`); console.info(`${caseName} register fail: ${error}`);
expect().assertFail(); expect().assertFail();
done(); done();
...@@ -1865,8 +1865,8 @@ ...@@ -1865,8 +1865,8 @@
} }
let netId = 0; let netId = 0;
let netConn = connection.createNetConnection(netSpecifier, TIMEOUT); let netConn = connection.createNetConnection(netSpecifier, TIMEOUT);
netConn.on('netAvailable', (error, value) => { netConn.on('netAvailable', ( value) => {
if (error) { if (value === undefined) {
console.info(`${caseName} register fail: ${error}`); console.info(`${caseName} register fail: ${error}`);
expect().assertFail(); expect().assertFail();
done(); done();
...@@ -2031,8 +2031,8 @@ ...@@ -2031,8 +2031,8 @@
} }
let netId = 0; let netId = 0;
let netConn = connection.createNetConnection(netSpecifier, TIMEOUT); let netConn = connection.createNetConnection(netSpecifier, TIMEOUT);
netConn.on('netAvailable', (error, value) => { netConn.on('netAvailable', (value) => {
if (error) { if (value === undefined) {
console.info(`${caseName} register fail: ${error}`); console.info(`${caseName} register fail: ${error}`);
expect().assertFail(); expect().assertFail();
done(); done();
...@@ -2261,8 +2261,8 @@ ...@@ -2261,8 +2261,8 @@
}, bearerPrivateIdentifier: '123' }, bearerPrivateIdentifier: '123'
} }
let netConn = connection.createNetConnection(netSpecifier, TIMEOUT_1); let netConn = connection.createNetConnection(netSpecifier, TIMEOUT_1);
netConn.on('netAvailable', (error, value) => { netConn.on('netAvailable', (value) => {
if (error) { if (value === undefined) {
console.info(`${caseName} register fail: ${error}`); console.info(`${caseName} register fail: ${error}`);
expect().assertFail(); expect().assertFail();
done(); done();
...@@ -2349,8 +2349,8 @@ ...@@ -2349,8 +2349,8 @@
it('Telephony_NetworkManager_unregister_Async_0200', 0, async function (done) { it('Telephony_NetworkManager_unregister_Async_0200', 0, async function (done) {
let caseName = 'Telephony_NetworkManager_unregister_Async_0200'; let caseName = 'Telephony_NetworkManager_unregister_Async_0200';
let netConn = connection.createNetConnection(); let netConn = connection.createNetConnection();
netConn.on('netAvailable', (error, value) => { netConn.on('netAvailable', (value) => {
if (error) { if (value === undefined) {
console.info(`${caseName} register fail: ${error}`); console.info(`${caseName} register fail: ${error}`);
expect().assertFail(); expect().assertFail();
done(); done();
...@@ -2436,8 +2436,8 @@ ...@@ -2436,8 +2436,8 @@
it('Telephony_NetworkManager_unregister_Async_0300', 0, async function (done) { it('Telephony_NetworkManager_unregister_Async_0300', 0, async function (done) {
let caseName = 'Telephony_NetworkManager_unregister_Async_0300'; let caseName = 'Telephony_NetworkManager_unregister_Async_0300';
let netConn = connection.createNetConnection(); let netConn = connection.createNetConnection();
netConn.on('netAvailable', (error, value) => { netConn.on('netAvailable', (value) => {
if (error) { if (value === undefined) {
console.info(`${caseName} register fail: ${error}`); console.info(`${caseName} register fail: ${error}`);
expect().assertFail(); expect().assertFail();
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册