mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Wait before running the second test. (#18826)
This commit is contained in:
parent
1e8ef602c3
commit
a8d97a6dc9
@ -117,6 +117,11 @@ void main() {
|
|||||||
await device.shellExec('am', <String>['start', '-n', kActivityId]);
|
await device.shellExec('am', <String>['start', '-n', kActivityId]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Give the device the time to really shut down the app.
|
||||||
|
await new Future<Null>.delayed(const Duration(milliseconds: 200));
|
||||||
|
// After the delay, force-stopping it shouldn't do anything, but doesn't hurt.
|
||||||
|
await device.shellExec('am', <String>['force-stop', kAppId]);
|
||||||
|
|
||||||
final String currentTime = (await device.shellEval('date', <String>['"+%F %R:%S.000"'])).trim();
|
final String currentTime = (await device.shellEval('date', <String>['"+%F %R:%S.000"'])).trim();
|
||||||
print('Start time on device: $currentTime');
|
print('Start time on device: $currentTime');
|
||||||
section('Launching app');
|
section('Launching app');
|
||||||
|
Loading…
Reference in New Issue
Block a user