Rename test file to end with _test so it runs on the bots (#21438)

* Rename test file

* Fix detection to work regardless of whether there are other devices

On Windows we get one message, but on Mac we get another (because of the Simulator always being available).
This commit is contained in:
Danny Tuppeny 2018-09-06 13:08:34 +01:00 committed by GitHub
parent 2c1d12d4f7
commit 7e3ebfc7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,10 @@ void main() {
expect(_proc.stdout, isNot(contains('flutter has exited unexpectedly')));
expect(_proc.stderr, isNot(contains('flutter has exited unexpectedly')));
expect(_proc.stderr, contains('Unable to locate a development'));
if (!_proc.stderr.toString().contains('Unable to locate a development')
&& !_proc.stdout.toString().contains('No devices found with name or id matching')) {
fail("'flutter run -d invalid-device-id' did not produce the expected error");
}
});
}, timeout: const Timeout.factor(6));
}