Skip to content

Commit 362f98d

Browse files
authored
Workaround for async SDK issue (#787)
1 parent df2ede5 commit 362f98d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.12.32+2
2+
3+
* Work around an SDK bug that caused timeouts in asynchronous code.
4+
15
## 0.12.32+1
26

37
* Fix a bug that broke content shell on Dart 1.24.

lib/src/runner/remote_listener.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ class RemoteListener {
6161
channel.sink.add({"type": "print", "line": line});
6262
});
6363

64+
// Work-around for https://github.com/dart-lang/sdk/issues/32556. Remove
65+
// once fixed.
66+
new Stream.fromIterable([]).listen((_) {}).cancel();
67+
6468
new SuiteChannelManager().asCurrent(() {
6569
new StackTraceFormatter().asCurrent(() {
6670
runZoned(() async {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test
2-
version: 0.12.32+1
2+
version: 0.12.32+2
33
author: Dart Team <[email protected]>
44
description: A library for writing dart unit tests.
55
homepage: https://github.com/dart-lang/test

0 commit comments

Comments
 (0)