提交 a873c647 编写于 作者: G gaoxi

caseup

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 2bae50b1
...@@ -2206,7 +2206,7 @@ ...@@ -2206,7 +2206,7 @@
done(); done();
} else { } else {
console.info(`${caseName} netCapabilitiesChange handle ` + value.netHandle.netId); console.info(`${caseName} netCapabilitiesChange handle ` + value.netHandle.netId);
expect(value.netHandle.netId > ETH_100 ).assertTrue(); expect(value.netHandle.netId >= ETH_100 ).assertTrue();
} }
}); });
netConn.on('netConnectionPropertiesChange', (value) => { netConn.on('netConnectionPropertiesChange', (value) => {
......
...@@ -151,7 +151,7 @@ describe('ActsNetworkSearchTest', function () { ...@@ -151,7 +151,7 @@ describe('ActsNetworkSearchTest', function () {
radio.getSignalInformation(SLOT_2, (err, data) => { radio.getSignalInformation(SLOT_2, (err, data) => {
if (err) { if (err) {
console.log(`Telephony_NetworkSearch_getSignalInformation_Async_0400 fail err: ${err}`); console.log(`Telephony_NetworkSearch_getSignalInformation_Async_0400 fail err: ${err}`);
expect().assertFail(); expect(err != null).assertTrue();
done(); done();
return; return;
} }
...@@ -174,7 +174,7 @@ describe('ActsNetworkSearchTest', function () { ...@@ -174,7 +174,7 @@ describe('ActsNetworkSearchTest', function () {
radio.getISOCountryCodeForNetwork(SLOT_2, (err, data) => { radio.getISOCountryCodeForNetwork(SLOT_2, (err, data) => {
if (err) { if (err) {
console.log(`Telephony_NetworkSearch_getISOCountryCodeForNetwork_Async_0400 fail err: ${err}`); console.log(`Telephony_NetworkSearch_getISOCountryCodeForNetwork_Async_0400 fail err: ${err}`);
expect().assertFail(); expect(err != null).assertTrue();
done(); done();
return; return;
} }
...@@ -198,7 +198,7 @@ describe('ActsNetworkSearchTest', function () { ...@@ -198,7 +198,7 @@ describe('ActsNetworkSearchTest', function () {
expect(data.length === 0).assertTrue(); expect(data.length === 0).assertTrue();
} catch (err) { } catch (err) {
console.log(`Telephony_NetworkSearch_getISOCountryCodeForNetwork_Promise_0400 fail err: ${err}`); console.log(`Telephony_NetworkSearch_getISOCountryCodeForNetwork_Promise_0400 fail err: ${err}`);
expect().assertFail(); expect(err != null).assertTrue();
done(); done();
return; return;
} }
...@@ -295,7 +295,7 @@ describe('ActsNetworkSearchTest', function () { ...@@ -295,7 +295,7 @@ describe('ActsNetworkSearchTest', function () {
expect(data.length === 0).assertTrue(); expect(data.length === 0).assertTrue();
} catch (err) { } catch (err) {
console.log(`Telephony_NetworkSearch_getSignalInformation_Promise_0400 fail err: ${err}`); console.log(`Telephony_NetworkSearch_getSignalInformation_Promise_0400 fail err: ${err}`);
expect().assertFail(); expect(err != null).assertTrue();
done(); done();
return; return;
} }
...@@ -311,7 +311,7 @@ describe('ActsNetworkSearchTest', function () { ...@@ -311,7 +311,7 @@ describe('ActsNetworkSearchTest', function () {
radio.getOperatorName(SLOT_2, (err, data) => { radio.getOperatorName(SLOT_2, (err, data) => {
if (err) { if (err) {
console.log(`Telephony_NetworkSearch_getOperatorName_Async_0400 fail err: ${err}`); console.log(`Telephony_NetworkSearch_getOperatorName_Async_0400 fail err: ${err}`);
expect().assertFail(); expect(err != null).assertTrue();
done(); done();
return; return;
} }
...@@ -334,7 +334,7 @@ describe('ActsNetworkSearchTest', function () { ...@@ -334,7 +334,7 @@ describe('ActsNetworkSearchTest', function () {
done(); done();
} catch (err) { } catch (err) {
console.log(`Telephony_NetworkSearch_getOperatorName_Promise_0400 fail err: ${err}`); console.log(`Telephony_NetworkSearch_getOperatorName_Promise_0400 fail err: ${err}`);
expect().assertFail(); expect(err != null).assertTrue();
done(); done();
} }
}) })
......
...@@ -269,7 +269,7 @@ describe('SimManagerTest', function () { ...@@ -269,7 +269,7 @@ describe('SimManagerTest', function () {
sim.isSimActive(env.SLOTID2, (err, data) => { sim.isSimActive(env.SLOTID2, (err, data) => {
if (err) { if (err) {
console.log(`${CASE_NAME} fail, err: ${err.message}`); console.log(`${CASE_NAME} fail, err: ${err.message}`);
expect().assertFail(); expect(err != null).assertTrue();
done(); done();
return; return;
} }
...@@ -292,7 +292,7 @@ describe('SimManagerTest', function () { ...@@ -292,7 +292,7 @@ describe('SimManagerTest', function () {
expect(data).assertFalse(); expect(data).assertFalse();
} catch (err) { } catch (err) {
console.log(`${CASE_NAME} isSimActive fail, err: ${err.message}`); console.log(`${CASE_NAME} isSimActive fail, err: ${err.message}`);
expect().assertFail(); expect(err != null).assertTrue();
done(); done();
return; return;
} }
...@@ -310,7 +310,7 @@ describe('SimManagerTest', function () { ...@@ -310,7 +310,7 @@ describe('SimManagerTest', function () {
const CASE_NAME = 'Telephony_Sim_hasSimCard_Async_0600'; const CASE_NAME = 'Telephony_Sim_hasSimCard_Async_0600';
sim.hasSimCard(env.SLOTID2, (err, data) => { sim.hasSimCard(env.SLOTID2, (err, data) => {
if (err) { if (err) {
expect().assertFail(); expect(err != null).assertTrue();
console.log(`${CASE_NAME} fail, err: ${err.message}`); console.log(`${CASE_NAME} fail, err: ${err.message}`);
done(); done();
return; return;
...@@ -333,7 +333,7 @@ describe('SimManagerTest', function () { ...@@ -333,7 +333,7 @@ describe('SimManagerTest', function () {
let data = await sim.hasSimCard(env.SLOTID2); let data = await sim.hasSimCard(env.SLOTID2);
expect(data).assertFalse(); expect(data).assertFalse();
} catch (err) { } catch (err) {
expect().assertFail(); expect(err != null).assertTrue();
console.log(`${CASE_NAME} fail, err: ${err.message}`); console.log(`${CASE_NAME} fail, err: ${err.message}`);
done(); done();
return; return;
...@@ -366,7 +366,7 @@ describe('SimManagerTest', function () { ...@@ -366,7 +366,7 @@ describe('SimManagerTest', function () {
sim.getCardType(env.SLOTID2, (error, cardType) => { sim.getCardType(env.SLOTID2, (error, cardType) => {
if (error) { if (error) {
console.log(`${CASE_NAME} GetCardType error: ${error.message}`); console.log(`${CASE_NAME} GetCardType error: ${error.message}`);
expect().assertFail(); expect(err != null).assertTrue();
done(); done();
return; return;
} }
...@@ -390,7 +390,7 @@ describe('SimManagerTest', function () { ...@@ -390,7 +390,7 @@ describe('SimManagerTest', function () {
console.log(`${CASE_NAME} test finish.`); console.log(`${CASE_NAME} test finish.`);
} catch (error) { } catch (error) {
console.log(`${CASE_NAME} GetCardType error: ${error.message}`); console.log(`${CASE_NAME} GetCardType error: ${error.message}`);
expect().assertFail(); expect(err != null).assertTrue();
} }
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册