From eaef85166ad8cc140dd4a4791d33d30b8ff7cbad Mon Sep 17 00:00:00 2001 From: gaoxi785 Date: Thu, 24 Aug 2023 17:51:49 +0800 Subject: [PATCH] delete systemapi Signed-off-by: gaoxi785 --- .../main/js/test/NetworkSearchErrors.test.js | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/telephony/telephonyjstest/network_search/network_search_errors/src/main/js/test/NetworkSearchErrors.test.js b/telephony/telephonyjstest/network_search/network_search_errors/src/main/js/test/NetworkSearchErrors.test.js index 991427a20..53a1bc402 100644 --- a/telephony/telephonyjstest/network_search/network_search_errors/src/main/js/test/NetworkSearchErrors.test.js +++ b/telephony/telephonyjstest/network_search/network_search_errors/src/main/js/test/NetworkSearchErrors.test.js @@ -23,34 +23,6 @@ describe('ActsNetworkSearchTest', function () { const SLOT_0 = 0; 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 () { try { expect(radio.RadioTechnology.RADIO_TECHNOLOGY_UNKNOWN === 0).assertTrue(); -- GitLab