mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
skip a test on windows
This commit is contained in:
parent
7115ff2674
commit
39cf521896
|
@ -24,26 +24,30 @@ defineTests() {
|
|||
temp.deleteSync(recursive: true);
|
||||
});
|
||||
|
||||
// Verify that we create a project that is well-formed.
|
||||
test('init flutter-simple', () async {
|
||||
InitCommand command = new InitCommand();
|
||||
CommandRunner runner = new CommandRunner('test_flutter', '')
|
||||
..addCommand(command);
|
||||
await runner.run(['init', '--out', temp.path])
|
||||
.then((int code) => expect(code, equals(0)));
|
||||
// This test consistently times out on our windows bot. The code is already
|
||||
// covered on the linux one.
|
||||
if (!Platform.isWindows) {
|
||||
// Verify that we create a project that is well-formed.
|
||||
test('init flutter-simple', () async {
|
||||
InitCommand command = new InitCommand();
|
||||
CommandRunner runner = new CommandRunner('test_flutter', '')
|
||||
..addCommand(command);
|
||||
await runner.run(['init', '--out', temp.path])
|
||||
.then((int code) => expect(code, equals(0)));
|
||||
|
||||
String path = p.join(temp.path, 'lib', 'main.dart');
|
||||
expect(new File(path).existsSync(), true);
|
||||
ProcessResult exec = Process.runSync(
|
||||
sdkBinaryName('dartanalyzer'), ['--fatal-warnings', path],
|
||||
workingDirectory: temp.path);
|
||||
if (exec.exitCode != 0) {
|
||||
print(exec.stdout);
|
||||
print(exec.stderr);
|
||||
}
|
||||
expect(exec.exitCode, 0);
|
||||
},
|
||||
// This test can take a while due to network requests.
|
||||
timeout: new Timeout(new Duration(minutes: 3)));
|
||||
String path = p.join(temp.path, 'lib', 'main.dart');
|
||||
expect(new File(path).existsSync(), true);
|
||||
ProcessResult exec = Process.runSync(
|
||||
sdkBinaryName('dartanalyzer'), ['--fatal-warnings', path],
|
||||
workingDirectory: temp.path);
|
||||
if (exec.exitCode != 0) {
|
||||
print(exec.stdout);
|
||||
print(exec.stderr);
|
||||
}
|
||||
expect(exec.exitCode, 0);
|
||||
},
|
||||
// This test can take a while due to network requests.
|
||||
timeout: new Timeout(new Duration(minutes: 2)));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue