未验证 提交 8f437be9 编写于 作者: O openharmony_ci 提交者: Gitee

!9723 【XTS】【communication】LBS流水线问题用例优化

Merge pull request !9723 from 权力/myfeature
...@@ -484,7 +484,7 @@ export default function geolocationTest_geo7() { ...@@ -484,7 +484,7 @@ export default function geolocationTest_geo7() {
}) })
} catch (error) { } catch (error) {
console.info("[lbs_js] getCurrentLocation252 promise try err." + JSON.stringify(error)); console.info("[lbs_js] getCurrentLocation252 promise try err." + JSON.stringify(error));
expect(true).assertFalse(); expect(error.code).assertEqual("401");
} }
await sleep(1000); await sleep(1000);
done(); done();
...@@ -560,7 +560,7 @@ export default function geolocationTest_geo7() { ...@@ -560,7 +560,7 @@ export default function geolocationTest_geo7() {
}) })
} catch (error) { } catch (error) {
console.info("[lbs_js] getCurrentLocation272 promise try err." + JSON.stringify(error)); console.info("[lbs_js] getCurrentLocation272 promise try err." + JSON.stringify(error));
expect(true).assertFalse(); expect(error.code).assertEqual("401");
} }
await sleep(1000); await sleep(1000);
done(); done();
...@@ -1135,7 +1135,7 @@ export default function geolocationTest_geo7() { ...@@ -1135,7 +1135,7 @@ export default function geolocationTest_geo7() {
geolocationm.on('locationChange', requestInfo2, locationChange2); geolocationm.on('locationChange', requestInfo2, locationChange2);
} catch (error) { } catch (error) {
console.info("[lbs_js] locationChangerOn292 try err." + JSON.stringify(error)); console.info("[lbs_js] locationChangerOn292 try err." + JSON.stringify(error));
expect(true).assertFalse(); expect(error.code).assertEqual("401");
} }
try { try {
geolocationm.off('locationChange', locationChange2); geolocationm.off('locationChange', locationChange2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册