Skip to content

Commit de24ee6

Browse files
committed
what
1 parent a26cd64 commit de24ee6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/chromedriver_utils.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ Future<void> startChromeDriver() async {
1212
try {
1313
final chromeDriver = await Process.start(
1414
'chromedriver', ['--port=4444', '--url-base=wd/hub']);
15-
addTearDown(chromeDriver.kill);
15+
addTearDown(() {
16+
if (!chromeDriver.kill()) {
17+
chromeDriver.kill(ProcessSignal.sigkill);
18+
}
19+
});
1620

1721
// On windows this takes a while to boot up, wait for the first line
1822
// of stdout as a signal that it is ready.

0 commit comments

Comments
 (0)