Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
36687875
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
36687875
编写于
6月 13, 2022
作者:
G
gaoxi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
netmanager_socket用例修改
Signed-off-by:
N
gaoxi
<
gaoxi785@huawei.com
>
上级
c0593a2e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
56 addition
and
335 deletion
+56
-335
telephony/telephonyjstest/netmanager_socket/entry/src/main/ets/test/SocketJsunit.test.ets
...ager_socket/entry/src/main/ets/test/SocketJsunit.test.ets
+56
-335
未找到文件。
telephony/telephonyjstest/netmanager_socket/entry/src/main/ets/test/SocketJsunit.test.ets
浏览文件 @
36687875
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录