Index: pkg/oauth2/test/credentials_test.dart |
diff --git a/pkg/oauth2/test/credentials_test.dart b/pkg/oauth2/test/credentials_test.dart |
index 8e40a4a1709c9d254653a6888b87e58953c08d66..1ee5b7597335103c2dcedf220245f5985be55e9d 100644 |
--- a/pkg/oauth2/test/credentials_test.dart |
+++ b/pkg/oauth2/test/credentials_test.dart |
@@ -46,8 +46,8 @@ void main() { |
'access token', null, tokenEndpoint); |
expect(credentials.canRefresh, false); |
credentials.refresh('identifier', 'secret', httpClient: httpClient) |
- .catchError(expectAsync1((e) { |
- expect(e.error is StateError, isTrue); |
+ .catchError(expectAsync1((error) { |
+ expect(error is StateError, isTrue); |
})); |
}); |
@@ -55,8 +55,8 @@ void main() { |
var credentials = new oauth2.Credentials('access token', 'refresh token'); |
expect(credentials.canRefresh, false); |
credentials.refresh('identifier', 'secret', httpClient: httpClient) |
- .catchError(expectAsync1((e) { |
- expect(e.error is StateError, isTrue); |
+ .catchError(expectAsync1((error) { |
+ expect(error is StateError, isTrue); |
})); |
}); |