Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d18fff3

Browse files
author
Emmanuel Garcia
committed
races
1 parent a960373 commit d18fff3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

testing/scenario_app/bin/android_integration_tests.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ void main(List<String> args) async {
140140
});
141141

142142
await step('Killing logcat process...', () async {
143-
logcatProcess.kill();
143+
final bool delivered = logcatProcess.kill(ProcessSignal.sigkill);
144+
assert(delivered);
144145
});
145146

146147
await step('Dumping logcat (Errors only)...', () async {

testing/scenario_app/bin/utils/process_manager_extension.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Future<int> pipeProcessStreams(Process process, {StringSink? out}) async {
3131
await stdoutCompleter.future;
3232
await stderrCompleter.future;
3333

34-
stderrSub.cancel();
35-
stdoutSub.cancel();
34+
await stderrSub.cancel();
35+
await stdoutSub.cancel();
3636
return exitCode;
3737
}
3838

0 commit comments

Comments
 (0)