Unverified Commit 64a8d447 authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

Fix test so it doesn't leak frontend_server process (#24360)

* Fix test so it doesn't leak frontend_server process

* Stop FlutterTestDriver even if expectation is not met
parent e8eea834
......@@ -52,7 +52,11 @@ void main() {
test('writes pid-file', () async {
final File pidFile = tempDir.childFile('test.pid');
await _flutter.run(pidFile: pidFile);
expect(pidFile.existsSync(), isTrue);
try {
expect(pidFile.existsSync(), isTrue);
} finally {
await _flutter.stop();
}
});
}, timeout: const Timeout.factor(6));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment