提交 79a0a860 编写于 作者: G gaoxi

电话netmanager_socket用例修改

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 fdda3204
......@@ -387,11 +387,7 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_bind_0200', 0, function (done) {
let caseName = "Telephony_Socket_UDPSocket_bind_0200"
console.log("************* Telephony_Socket_UDPSocket_bind_0200 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let netAddress: socket.NetAddress = {
address: "test address",
family: 1,
......@@ -447,11 +443,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_bind_0400', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_bind_0400 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_bind_0400"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let netAddress = {
address: "third test address",
family: 3,
......@@ -476,11 +467,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_send_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_send_0100 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_send_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let udpSendOptions = {
data: "test data",
address: {
......@@ -511,11 +497,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_send_0200', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_send_0200 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_send_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let udpSendOptions = {
data: "test data",
address: {
......@@ -541,11 +522,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_send_0300', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_send_0300 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_send_0300"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let udpSendOptions = {
data: "test data",
address: {
......@@ -574,11 +550,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_send_0400', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_send_0400 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_send_0400"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let udpSendOptions = {
data: "test data",
address: {
......@@ -602,11 +573,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_close_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_close_0100 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_close_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.close((error, data) => {
if (error) {
console.log(`${caseName} error, case success,error:${toString(error)}`);
......@@ -628,11 +594,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_close_0200', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_close_0200 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_close_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.close().then(data => {
console.log(`${caseName} success,data:${toString(data)}`);
}).catch((error) => {
......@@ -650,11 +611,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_getState_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_getState_0100 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_getState_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.getState((error, data) => {
if (error) {
console.log(`${caseName} error, case success,error:${toString(error)}`);
......@@ -677,11 +633,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_getState_0200', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_getState_0200 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_getState_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.getState().then(data => {
console.log(`${caseName} success,data:${toString(data)}`);
}).catch((error) => {
......@@ -700,11 +651,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_setExtraOptions_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_setExtraOptions_0100 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_setExtraOptions_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let udpExtraOptions = {
broadcast: true
}
......@@ -762,11 +708,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_setExtraOptions_0300', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_setExtraOptions_0300 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_setExtraOptions_0300"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let udpExtraOptions = {}
udp.setExtraOptions(udpExtraOptions, (error) => {
if (error) {
......@@ -814,11 +755,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_on_message_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_on_message_0100 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_on_message_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.on('message', (data) => {
let socketRemoteInfo = data.remoteInfo;
console.log(`${caseName} port:${socketRemoteInfo.port}`);
......@@ -836,11 +772,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_off_message_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_off_message_0100 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_off_message_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.off("message", data => {
let socketRemoteInfo = data.remoteInfo;
console.log(`${caseName} port:${socketRemoteInfo.port}`);
......@@ -857,11 +788,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_UDPSocket_off_message_0200', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_off_message_0200 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.off("message");
expect(true).assertTrue();
console.log("************* Telephony_Socket_UDPSocket_off_message_0200 Test end*************");
......@@ -875,11 +801,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_UDPSocket_on_listening_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_on_listening_0100 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.on("listening", data => {
expect(true).assertTrue();
});
......@@ -894,11 +815,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_UDPSocket_off_listening_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_off_listening_0100 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.off("listening", data => {
expect(true).assertTrue();
});
......@@ -913,11 +829,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_UDPSocket_off_listening_0200', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_off_listening_0200 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.off("listening");
expect(true).assertTrue();
console.log("************* Telephony_Socket_UDPSocket_off_listening_0200 Test end*************");
......@@ -931,11 +842,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_UDPSocket_on_close_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_on_close_0100 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.on("close", data => {
expect(true).assertTrue();
});
......@@ -950,11 +856,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_UDPSocket_off_close_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_off_close_0100 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.off("close", data => {
expect(true).assertTrue();
});
......@@ -969,11 +870,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_UDPSocket_off_close_0200', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_off_close_0200 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.off("close");
expect(true).assertTrue();
console.log("************* Telephony_Socket_UDPSocket_off_close_0200 Test end*************");
......@@ -988,11 +884,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_on_error_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_on_error_0100 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_on_error_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.on("error", error => {
console.log(`${caseName} fail, error:${toString(error)}`);
expect().assertFail();
......@@ -1010,11 +901,6 @@ export default function socketJsunit() {
it('Telephony_Socket_UDPSocket_off_error_0100', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_off_error_0100 Test start*************");
let caseName = "Telephony_Socket_UDPSocket_off_error_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.off("error", error => {
console.log(`${caseName} fail, error:${toString(error)}`);
expect().assertFail();
......@@ -1031,11 +917,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_UDPSocket_off_error_0200', 0, function (done) {
console.log("************* Telephony_Socket_UDPSocket_off_error_0200 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
udp.off("error");
expect(true).assertTrue();
console.log("************* Telephony_Socket_UDPSocket_off_error_0200 Test end*************");
......@@ -1077,11 +958,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_bind_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_bind_0200 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_bind_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let netAddress = {
address: "test address",
family: 1,
......@@ -1131,11 +1007,7 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_bind_0400', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_bind_0400 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_bind_0400"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let netAddress = {
address: "third test address"
}
......@@ -1158,11 +1030,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_send_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_send_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_send_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpSendOptions = {
data: "test data",
encoding: "test encoding"
......@@ -1189,11 +1056,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_send_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_send_0200 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_send_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpSendOptions = {
data: "test data",
encoding: "test encoding"
......@@ -1215,11 +1077,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_send_0300', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_send_0300 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_send_0300"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpSendOptions = {
data: "second test data",
}
......@@ -1245,11 +1102,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_send_0400', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_send_0400 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_send_0400"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpSendOptions = {
data: "second test data",
}
......@@ -1270,11 +1122,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_connect_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_connect_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_connect_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpConnectOptions = {
address: {
address: "test address",
......@@ -1305,11 +1152,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_connect_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_connect_0200 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_connect_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpConnectOptions = {
address: {
address: "test address",
......@@ -1335,11 +1177,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_connect_0300', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_connect_0300 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_connect_0300"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpConnectOptions = {
address: {
address: "second test address",
......@@ -1369,11 +1206,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_connect_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_connect_0400 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_connect_0400"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpConnectOptions = {
address: {
address: "second test address",
......@@ -1398,11 +1230,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_close_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_close_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_close_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.close((error, data) => {
if (error) {
console.log(`${caseName} error, case success,error:${toString(error)}`);
......@@ -1424,11 +1251,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_close_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_close_0200 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_close_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.close().then(data => {
console.log(`${caseName} success,data:${toString(data)}`);
}).catch((error) => {
......@@ -1446,11 +1268,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_getState_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_getState_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_getState_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.getState((error, data) => {
if (error) {
console.log(`${caseName} case success,error:${toString(error)}`);
......@@ -1473,17 +1290,11 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_getState_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_getState_0200 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_getState_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.getState().then(data => {
console.log(`${caseName} success,data:${toString(data)}`);
}).catch((error) => {
console.log(`${caseName} failed,error:${toString(error)}`);
});
console.log("************* Telephony_Socket_TCPSocket_getState_0200 Test end*************");
done();
});
......@@ -1496,11 +1307,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_setExtraOptions_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_setExtraOptions_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_setExtraOptions_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpExtraOptions = {
keepAlive: true,
OOBInline: true,
......@@ -1532,11 +1338,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_setExtraOptions_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_setExtraOptions_0200 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_setExtraOptions_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpExtraOptions = {
keepAlive: true,
OOBInline: true,
......@@ -1569,11 +1370,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_setExtraOptions_0300', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_setExtraOptions_0300 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_setExtraOptions_0300"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpExtraOptions = {
socketLinger: {
on: true,
......@@ -1602,11 +1398,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_setExtraOptions_0400', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_setExtraOptions_0400 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_setExtraOptions_0400"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
let tcpExtraOptions = {
socketLinger: {
on: true,
......@@ -1636,11 +1427,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_getRemoteAddress_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_getRemoteAddress_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_getRemoteAddress_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.getRemoteAddress((error) => {
if (error) {
console.log(`${caseName} error, case success,error:${toString(error)}`);
......@@ -1662,11 +1448,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_getRemoteAddress_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_getRemoteAddress_0200 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_getRemoteAddress_0200"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.getRemoteAddress().then(data => {
console.log(`${caseName} success,data:${toString(data)}`);
}).catch((error) => {
......@@ -1684,11 +1465,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_on_message_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_on_message_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_on_message_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.on("message", data => {
let socketRemoteInfo: socket.SocketRemoteInfo = data.remoteInfo;
console.log(`${caseName} port:${socketRemoteInfo.port}`);
......@@ -1706,11 +1482,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_off_message_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_off_message_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_off_message_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.off("message", data => {
let socketRemoteInfo: socket.SocketRemoteInfo = data.remoteInfo;
console.log(`${caseName} port:${socketRemoteInfo.port}`);
......@@ -1727,11 +1498,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_TCPSocket_off_message_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_off_message_0200 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.off("message");
expect(true).assertTrue();
console.log("************* Telephony_Socket_TCPSocket_off_message_0200 Test end*************");
......@@ -1745,11 +1511,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_TCPSocket_on_connect_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_on_connect_0100 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.on("connect", data => {
expect(true).assertTrue();
});
......@@ -1764,11 +1525,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_TCPSocket_off_connect_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_off_connect_0100 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.off("connect", data => {
expect(true).assertTrue();
});
......@@ -1783,11 +1539,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_TCPSocket_off_connect_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_off_connect_0200 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.off("connect");
expect(true).assertTrue();
console.log("************* Telephony_Socket_TCPSocket_off_connect_0200 Test end*************");
......@@ -1801,11 +1552,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_TCPSocket_on_close_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_on_close_0100 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.on("close", data => {
expect(true).assertTrue();
});
......@@ -1820,11 +1566,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_TCPSocket_off_close_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_off_close_0100 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.off("close", data => {
expect(true).assertTrue();
});
......@@ -1839,11 +1580,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_TCPSocket_off_close_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_off_close_0200 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.off("close");
expect(true).assertTrue();
console.log("************* Telephony_Socket_TCPSocket_off_close_0200 Test end*************");
......@@ -1858,11 +1594,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_on_error_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_on_error_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_on_error_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.on("error", error => {
console.log(`${caseName} fail, error:${toString(error)}`);
expect().assertFail();
......@@ -1880,11 +1611,6 @@ export default function socketJsunit() {
it('Telephony_Socket_TCPSocket_off_error_0100', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_off_error_0100 Test start*************");
let caseName = "Telephony_Socket_TCPSocket_off_error_0100"
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.off("error", error => {
console.log(`${caseName} fail, error:${toString(error)}`);
expect().assertFail();
......@@ -1901,11 +1627,6 @@ export default function socketJsunit() {
*/
it('Telephony_Socket_TCPSocket_off_error_0200', 0, function (done) {
console.log("************* Telephony_Socket_TCPSocket_off_error_0200 Test start*************");
if (2 === 0) {
expect(true).assertTrue();
done();
return;
}
tcp.off("error");
expect(true).assertTrue();
console.log("************* Telephony_Socket_TCPSocket_off_error_0200 Test end*************");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册