| Index: tests/lib/async/stream_state_helper.dart
|
| diff --git a/tests/lib/async/stream_state_helper.dart b/tests/lib/async/stream_state_helper.dart
|
| index b982d9d23be4e82fd13fec277e913907f31fbeac..57288e89345042fe19d2ed95e813ce97be518d3a 100644
|
| --- a/tests/lib/async/stream_state_helper.dart
|
| +++ b/tests/lib/async/stream_state_helper.dart
|
| @@ -73,11 +73,11 @@ class StreamProtocolTest {
|
| });
|
| }
|
|
|
| - void _onError(AsyncError error) {
|
| + void _onError(error) {
|
| _withNextExpectation((Event expect) {
|
| if (!expect.matchError(error)) {
|
| _fail("Expected: $expect\n"
|
| - "Found : [Data: ${error.error}]");
|
| + "Found : [Data: ${error}]");
|
| }
|
| });
|
| }
|
| @@ -190,7 +190,7 @@ class Event {
|
| if (_action != null) _action();
|
| return true;
|
| }
|
| - bool matchError(AsyncError e) {
|
| + bool matchError(e) {
|
| if (!_testError(e)) return false;
|
| if (_action != null) _action();
|
| return true;
|
| @@ -233,7 +233,7 @@ class DataEvent extends Event {
|
| class ErrorEvent extends Event {
|
| final error;
|
| ErrorEvent(this.error, void action()) : super(action);
|
| - bool _testError(AsyncError error) => this.error == error.error;
|
| + bool _testError(error) => this.error == error;
|
| String toString() => "[Error: $error]";
|
| }
|
|
|
| @@ -270,8 +270,8 @@ class LogAnyEvent extends Event {
|
| _actual = "*[Data $data]";
|
| return true;
|
| }
|
| - bool _testError(AsyncError error) {
|
| - _actual = "*[Error ${error.error}]";
|
| + bool _testError(error) {
|
| + _actual = "*[Error ${error}]";
|
| return true;
|
| }
|
| bool _testDone() {
|
|
|