forked from upstream-mirrors/OpenTracks
Add a wait after sending Gps Signal.
This commit is contained in:
-3
@@ -279,9 +279,6 @@ public class CreateAndSendTrackTest extends ActivityInstrumentationTestCase2<Tra
|
|||||||
.getButtonOnScreen(activityMyTracks.getString(R.string.generic_ok), true, true);
|
.getButtonOnScreen(activityMyTracks.getString(R.string.generic_ok), true, true);
|
||||||
// Send Gps to give a distance more than one kilometer or one mile.
|
// Send Gps to give a distance more than one kilometer or one mile.
|
||||||
EndToEndTestUtils.sendGps(20);
|
EndToEndTestUtils.sendGps(20);
|
||||||
// Wait the GPS signal is obtained by MyTracks.
|
|
||||||
EndToEndTestUtils.SOLO.wait(EndToEndTestUtils.SHORT_WAIT_TIME);
|
|
||||||
|
|
||||||
assertTrue(EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_markers),
|
assertTrue(EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_markers),
|
||||||
true));
|
true));
|
||||||
instrumentation.waitForIdleSync();
|
instrumentation.waitForIdleSync();
|
||||||
|
|||||||
@@ -186,6 +186,8 @@ public class EndToEndTestUtils {
|
|||||||
longitude += DELTA_LONGITUDE;
|
longitude += DELTA_LONGITUDE;
|
||||||
latitude += DELTA_LADITUDE;
|
latitude += DELTA_LADITUDE;
|
||||||
}
|
}
|
||||||
|
// Wait the GPS signal can be obtained by MyTracks.
|
||||||
|
Thread.sleep(SHORT_WAIT_TIME);
|
||||||
} catch (UnknownHostException e) {
|
} catch (UnknownHostException e) {
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user