diff --git a/communication/dsoftbus/rpc/src/main/js/test/RpcJsunit.test.js b/communication/dsoftbus/rpc/src/main/js/test/RpcJsunit.test.js index d09478a..151ae83 100755 --- a/communication/dsoftbus/rpc/src/main/js/test/RpcJsunit.test.js +++ b/communication/dsoftbus/rpc/src/main/js/test/RpcJsunit.test.js @@ -299,10 +299,10 @@ export default function RpcJsUnitTest() { let driver = await UiDriver.create(); console.info(` come in driveFn`); console.info(`driver is ${JSON.stringify(driver)}`); - sleep(2000); + await sleep(2000); let button = await driver.findComponent(BY.text('允许')); console.info(`button is ${JSON.stringify(button)}`); - sleep(5000); + await sleep(2000); await button.click(); } catch (err) { console.info('err is ' + err); @@ -315,9 +315,9 @@ export default function RpcJsUnitTest() { console.info('beforeAll called rpc'); testservice = new TestService; await getPermission(); - sleep(5000); + await sleep(900); await driveFn(); - sleep(2000); + await sleep(900); testservice.toStartAbility(); sleep(2000); await testservice.toConnectAbility().then(data => {