Index: pkg/scheduled_test/test/value_future_test.dart |
diff --git a/pkg/scheduled_test/test/value_future_test.dart b/pkg/scheduled_test/test/value_future_test.dart |
index a5777b31188153ea1f27c430449844ed44f3fc13..61ab436284612c5f0c5115b93dfce24a9e40c04a 100644 |
--- a/pkg/scheduled_test/test/value_future_test.dart |
+++ b/pkg/scheduled_test/test/value_future_test.dart |
@@ -31,28 +31,28 @@ void main() { |
test('.then and .catchError on success', () { |
expect(future.then((v) => "transformed $v") |
- .catchError((e) => "caught ${e.error}"), |
+ .catchError((error) => "caught ${error}"), |
completion(equals('transformed success'))); |
completer.complete('success'); |
}); |
test('.then and .catchError on error', () { |
expect(future.then((v) => "transformed $v") |
- .catchError((e) => "caught ${e.error}"), |
+ .catchError((error) => "caught ${error}"), |
completion(equals('caught error'))); |
completer.completeError('error'); |
}); |
test('.then with onError on success', () { |
expect(future.then((v) => "transformed $v", |
- onError: (e) => "caught ${e.error}"), |
+ onError: (error) => "caught ${error}"), |
completion(equals('transformed success'))); |
completer.complete('success'); |
}); |
test('.then with onError on error', () { |
expect(future.then((v) => "transformed $v", |
- onError: (e) => "caught ${e.error}"), |
+ onError: (error) => "caught ${error}"), |
completion(equals('caught error'))); |
completer.completeError('error'); |
}); |