[macros] Fix flakiness on Windows related to add during flush and timeouts.

R=jakemac@google.com

Change-Id: I48f5829613ca2999caf23a485648054b920596a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352907
Reviewed-by: Jake Macdonald <jakemac@google.com>
Auto-Submit: Morgan :) <davidmorgan@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
This commit is contained in:
David Morgan 2024-02-20 15:47:10 +00:00 committed by Commit Queue
parent e1f1151870
commit 93b7791c0c
2 changed files with 2 additions and 1 deletions

View file

@ -124,7 +124,6 @@ class RequestChannel {
final ByteData lengthByteData = new ByteData(4)..setUint32(0, bytes.length);
_socket.add(lengthByteData.buffer.asUint8List());
_socket.add(bytes);
_socket.flush();
}
/// Serializes and sends the [object].

View file

@ -954,6 +954,7 @@ class MacroArgumentsTest extends MacroElementsBaseTest {
@override
bool get keepLinkingLibraries => true;
@TestTimeout(Timeout(Duration(seconds: 60)))
test_error() async {
await _assertTypesPhaseArgumentsText(
fields: {
@ -10913,6 +10914,7 @@ class MacroStaticTypeTest extends MacroElementsBaseTest {
);
}
@TestTimeout(Timeout(Duration(seconds: 60)))
test_isExactly() async {
const testCases = {
('double', 'double', true),