Comment 1 for bug 1227373

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

It's a test that has a high race condition (http://bazaar.launchpad.net/~phablet-team/camera-app/trunk/view/head:/tests/autopilot/camera_app/tests/test_capture.py#L141)

Look at the final 3 lines there:
        self.pointing_device.click()

        self.assertThat(exposure_button.enabled, Eventually(Equals(False)))
        self.assertThat(exposure_button.enabled, Eventually(Equals(True)))

The point of the test seems to:
1- take a photo
2- see that the shutter is disabled (since camera is not ready)
3- reenable shutter (since camera is ready for new snaps)

Observations:
- The time between 2 and 3 can be anything.
- Nothing triggers the final assert, hence it's testing a transition.
- The 'False' assert could already have been done by the time it's 'looked' at.