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
This commit is contained in:
parent
e8eea83472
commit
64a8d44764
@ -52,7 +52,11 @@ void main() {
|
|||||||
test('writes pid-file', () async {
|
test('writes pid-file', () async {
|
||||||
final File pidFile = tempDir.childFile('test.pid');
|
final File pidFile = tempDir.childFile('test.pid');
|
||||||
await _flutter.run(pidFile: pidFile);
|
await _flutter.run(pidFile: pidFile);
|
||||||
expect(pidFile.existsSync(), isTrue);
|
try {
|
||||||
|
expect(pidFile.existsSync(), isTrue);
|
||||||
|
} finally {
|
||||||
|
await _flutter.stop();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}, timeout: const Timeout.factor(6));
|
}, timeout: const Timeout.factor(6));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user