-
Notifications
You must be signed in to change notification settings - Fork 224
Fix test hang and prep for release - 0.12.26+1 #715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/src/runner/browser/browser.dart
Outdated
| final _onExitCompleter = new Completer(); | ||
|
|
||
| /// IO streams for the underlying browser process. | ||
| final _ioStreams = <StreamSubscription>[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I'd call this _ioSubscriptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
lib/src/runner/browser/browser.dart
Outdated
| Future get onExit => _onExitCompleter.future; | ||
| final _onExitCompleter = new Completer(); | ||
|
|
||
| /// IO streams for the underlying browser process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: "IO" -> "Standard IO"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| _closed = true; | ||
|
|
||
| // If we don't manually close the stream the test runner can hang. | ||
| // For example this happens with Chrome Headless. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you file a dart:io bug for this? If so, refer to it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
We declared an incorrect constraint for package stack_trace. This was fixed in #714
Also fixing potential test hangs by manually closing IO streams.
Preparing for a new release.