[tool] when writing to openssl as a part of macOS/iOS code-signing, flush the stdin stream before closing it (#150120)
Fixes https://github.com/flutter/flutter/issues/100584. Might help https://github.com/flutter/flutter/issues/137184.
This commit is contained in:
@@ -737,3 +737,13 @@ class FakeDevtoolsLauncher extends Fake implements DevtoolsLauncher {
|
||||
closed = true;
|
||||
}
|
||||
}
|
||||
|
||||
class ClosedStdinController extends Fake implements StreamSink<List<int>> {
|
||||
@override
|
||||
Future<Object?> addStream(Stream<List<int>> stream) async => throw const SocketException('Bad pipe');
|
||||
|
||||
@override
|
||||
Future<Object?> close() async {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user