提交 ae8109e4 编写于 作者: B bayanxing

remove error case

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 678719f8
......@@ -113,45 +113,6 @@ export default function connectionSecondJsUnit() {
done();
});
/**
* @tc.name: 'Telephony_connection_getConnectionProperties_Promise_0200
* @tc.desc: getConnectionProperties detection
*/
it('Telephony_connection_getConnectionProperties_Promise_0200', 0, function (done) {
console.log("----------Telephony_connection_getConnectionProperties_Promise_0200 Test is starting------");
if(false){
expect(true).assertTrue();
done();
return;
}
let caseName = 'Telephony_connection_getConnectionProperties_Promise_0200';
connection.getAllNets((error, data) => {
if (error) {
console.log(`${caseName} get data fail: ${error}`);
expect().assertTrue();
done();
} else {
console.log(`${caseName} get netID value : ${JSON.stringify(data[0])}`);
connection.getConnectionProperties(data[0]).then((value) => {
console.log(`${caseName} get value success: ${JSON.stringify(value)}`);
console.log(caseName + " interfaceName: " + value.interfaceName);
console.log(caseName + " mtu: " + value.mtu);
console.log(caseName + " domains " + value.domains);
expect(value.interfaceName == "").assertTrue();
expect(value.domains == "").assertTrue();
expect(value.mtu == 0).assertTrue();
expect(true).assertTrue();
console.log("-----Telephony_connection_getConnectionProperties_Promise_0200 Test end---------");
done();
}).catch((error) => {
console.log(`${caseName} getConnectionProperties fail: ${error}`);
expect().assertFail();
console.log("-----Telephony_connection_getConnectionProperties_Promise_0200 Test end---------");
done();
});
}
});
/**
* @tc.name: Telephony_connection_RouteInfo_0300
* @tc.desc: RouteInfo Properties detection
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册