提交 eaef8516 编写于 作者: G gaoxi785

delete systemapi

Signed-off-by: Ngaoxi785 <gaoxi785@huawei.com>
上级 f618f2cc
...@@ -23,34 +23,6 @@ describe('ActsNetworkSearchTest', function () { ...@@ -23,34 +23,6 @@ describe('ActsNetworkSearchTest', function () {
const SLOT_0 = 0; const SLOT_0 = 0;
const SLOT_2 = -1; const SLOT_2 = -1;
function sleep(timeout) {
return new Promise((resolve, reject) => {
setTimeout(() => {
console.info(`Telephony_NetworkSearch_CellInformation sleep ${timeout}ms`);
resolve();
}, timeout);
})
}
async function turnOnRadio() {
let isOn = await radio.isRadioOn();
if (!isOn) {
await radio.turnOnRadio();
console.info('Telephony_NetworkSearch_CellInformation turnOnRadio success');
await sleep(5000);
}
}
beforeAll(async function () {
await radio.setPreferredNetwork(SLOT_0, radio.PREFERRED_NETWORK_MODE_AUTO);
await turnOnRadio();
})
afterAll(async function () {
await radio.setPreferredNetwork(SLOT_0, radio.PREFERRED_NETWORK_MODE_AUTO);
await turnOnRadio();
})
afterEach(async function () { afterEach(async function () {
try { try {
expect(radio.RadioTechnology.RADIO_TECHNOLOGY_UNKNOWN === 0).assertTrue(); expect(radio.RadioTechnology.RADIO_TECHNOLOGY_UNKNOWN === 0).assertTrue();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册