diff --git a/location/geolocation_errorCode/src/main/js/default/test/ListeningError.test.js b/location/geolocation_errorCode/src/main/js/default/test/ListeningError.test.js index 9d48ab74f1f8c119431b3ab7e46b5da738c31e40..13bf85cd400327badcbe390aceb53d2bb36c5000 100644 --- a/location/geolocation_errorCode/src/main/js/default/test/ListeningError.test.js +++ b/location/geolocation_errorCode/src/main/js/default/test/ListeningError.test.js @@ -111,7 +111,7 @@ describe('geolocationTest_6', function () { geolocationm.off('countryCodeChange',1); } catch (error) { console.info("[lbs_js] countryCodeOff3 try error:"+ JSON.stringify(error) +"code"+ error.code +"mes"+ error.message); - expect(error.code).assertEqual("401"); + expect(true).assertFalse(); } }) @@ -163,7 +163,7 @@ describe('geolocationTest_6', function () { geolocationm.off('cachedGnssLocationsChange',1); } catch (error) { console.info("[lbs_js] cacheOff9 try error:"+ JSON.stringify(error) +"code"+ error.code +"mes"+ error.message); - expect(error.code).assertEqual("401"); + expect(error.code).assertEqual("801"); } }) diff --git a/location/geolocation_errorCode/src/main/js/default/test/LocationErrorTest.test.js b/location/geolocation_errorCode/src/main/js/default/test/LocationErrorTest.test.js index 1ffbcbfb8373b94e95917e4067a529f1cf4bb5a3..93c2ed18f90362cb74fdfcad94154434ea0513db 100644 --- a/location/geolocation_errorCode/src/main/js/default/test/LocationErrorTest.test.js +++ b/location/geolocation_errorCode/src/main/js/default/test/LocationErrorTest.test.js @@ -157,10 +157,10 @@ describe('geolocationTest_LocErr', function () { console.info("[wifi_test] getCurrentLocation2 promise:" + JSON.stringify(result)); } catch(error) { console.info('[lbs_js] getCurrentLocation2 promise try err:' + JSON.stringify(error) +"code"+ error.code +"mes"+ error.message); - expect(error.code).assertEqual("401"); + expect(error.code).assertEqual(3301200); } })(); - await sleep(600); + await sleep(4000); done(); })