Merge lp:~martin-borho/ubuntu-weather-app/ap-loading-timeouts into lp:ubuntu-weather-app/obsolete.trunk

Proposed by Martin Borho
Status: Merged
Merged at revision: 216
Proposed branch: lp:~martin-borho/ubuntu-weather-app/ap-loading-timeouts
Merge into: lp:ubuntu-weather-app/obsolete.trunk
Diff against target: 86 lines (+9/-9)
2 files modified
tests/autopilot/ubuntu_weather_app/tests/test_locationmanager.py (+1/-1)
tests/autopilot/ubuntu_weather_app/tests/test_settings.py (+8/-8)
To merge this branch: bzr merge lp:~martin-borho/ubuntu-weather-app/ap-loading-timeouts
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Needs Fixing
Ubuntu Weather Developers Pending
Review via email: mp+209333@code.launchpad.net

Commit message

added some increased timeouts to loading checks in AP tests

Description of the change

added some increased timeouts to loading checks in AP tests

To post a comment you must log in.
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I seem to remember us having these longtimeouts at one point.. interesting they make a comeback

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

As far as merging in looking at the errors further I don't believe these timeouts will have any affect on the issues at hand.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/autopilot/ubuntu_weather_app/tests/test_locationmanager.py'
--- tests/autopilot/ubuntu_weather_app/tests/test_locationmanager.py 2014-02-15 14:31:10 +0000
+++ tests/autopilot/ubuntu_weather_app/tests/test_locationmanager.py 2014-03-04 20:56:04 +0000
@@ -250,7 +250,7 @@
250250
251 # back to locations, only one is left251 # back to locations, only one is left
252 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')252 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')
253 self.assertThat(load_indicator.running, Eventually(Equals(False)))253 self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
254 tabObjects = self.main_window.select_many('LocationTab', objectName='LocationTab')254 tabObjects = self.main_window.select_many('LocationTab', objectName='LocationTab')
255 self.assertThat(lambda: tabsSumStart-1, Eventually(Equals(len(tabObjects))))255 self.assertThat(lambda: tabsSumStart-1, Eventually(Equals(len(tabObjects))))
256256
257257
=== modified file 'tests/autopilot/ubuntu_weather_app/tests/test_settings.py'
--- tests/autopilot/ubuntu_weather_app/tests/test_settings.py 2014-02-26 17:08:11 +0000
+++ tests/autopilot/ubuntu_weather_app/tests/test_settings.py 2014-03-04 20:56:04 +0000
@@ -164,7 +164,7 @@
164164
165 # wait for reload and check the imperial values165 # wait for reload and check the imperial values
166 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')166 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')
167 self.assertThat(load_indicator.running, Eventually(Equals(False)))167 self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
168 self._check_units('imperial')168 self._check_units('imperial')
169169
170 # switch back to metric values again170 # switch back to metric values again
@@ -192,7 +192,7 @@
192192
193 # wait for reload and check the metric values again193 # wait for reload and check the metric values again
194 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')194 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')
195 self.assertThat(load_indicator.running, Eventually(Equals(False)))195 self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
196 self._check_units('metric')196 self._check_units('metric')
197197
198 def test_switch_scale_cancel(self):198 def test_switch_scale_cancel(self):
@@ -262,7 +262,7 @@
262262
263 # wait for reload and check the mph values263 # wait for reload and check the mph values
264 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')264 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')
265 self.assertThat(load_indicator.running, Eventually(Equals(False)))265 self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
266 self._check_wind_units('mph')266 self._check_wind_units('mph')
267267
268 # switch back to kmh values again268 # switch back to kmh values again
@@ -290,7 +290,7 @@
290290
291 # wait for reload and check the metric values again291 # wait for reload and check the metric values again
292 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')292 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')
293 self.assertThat(load_indicator.running, Eventually(Equals(False)))293 self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
294 self._check_wind_units('kmh')294 self._check_wind_units('kmh')
295295
296 @skip("data not available")296 @skip("data not available")
@@ -319,7 +319,7 @@
319319
320 # wait for reload and check the inch values320 # wait for reload and check the inch values
321 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')321 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')
322 self.assertThat(load_indicator.running, Eventually(Equals(False)))322 self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
323 self._check_wind_units('in')323 self._check_wind_units('in')
324324
325 # switch back to mm values again325 # switch back to mm values again
@@ -349,7 +349,7 @@
349349
350 # wait for reload and check the metric values again350 # wait for reload and check the metric values again
351 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')351 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')
352 self.assertThat(load_indicator.running, Eventually(Equals(False)))352 self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
353 self._check_precipitation_units('mm')353 self._check_precipitation_units('mm')
354354
355 def test_switch_service(self):355 def test_switch_service(self):
@@ -383,7 +383,7 @@
383383
384 # wait for reload and check the used service 384 # wait for reload and check the used service
385 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')385 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')
386 self.assertThat(load_indicator.running, Eventually(Equals(False)))386 self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
387 self._check_service('openweathermap')387 self._check_service('openweathermap')
388388
389 # switch back to metric values again389 # switch back to metric values again
@@ -415,5 +415,5 @@
415415
416 # wait for reload and check the metric values again416 # wait for reload and check the metric values again
417 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')417 load_indicator = self.main_window.select_single('ActivityIndicator', objectName='LoadingSpinner')
418 self.assertThat(load_indicator.running, Eventually(Equals(False)))418 self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
419 self._check_service('weatherchannel')419 self._check_service('weatherchannel')

Subscribers

People subscribed via source and target branches