Skip to content

Commit b80c82a

Browse files
committed
Fix windows tests
1 parent 46b4c67 commit b80c82a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

webdev/test/e2e_test.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,13 @@ void main() {
111111
client.close(force: true);
112112
}
113113

114-
process.signal(ProcessSignal.SIGINT);
115-
116-
await process.shouldExit(0);
114+
if (Platform.isWindows) {
115+
await process.kill();
116+
await process.shouldExit(-1);
117+
} else {
118+
process.signal(ProcessSignal.SIGINT);
119+
await process.shouldExit(0);
120+
}
117121
});
118122
}
119123
});

0 commit comments

Comments
 (0)