Index: pkg/oauth2/test/client_test.dart |
diff --git a/pkg/oauth2/test/client_test.dart b/pkg/oauth2/test/client_test.dart |
index 7049122ba0db134098cb923fc5fc878f73c5ce85..434ea95fc3d1acb1e88d8f93f7a65262864df895 100644 |
--- a/pkg/oauth2/test/client_test.dart |
+++ b/pkg/oauth2/test/client_test.dart |
@@ -26,8 +26,8 @@ void createHttpClient() { |
} |
void expectFutureThrows(future, predicate) { |
- future.catchError(expectAsync1((AsyncError e) { |
- expect(predicate(e.error), isTrue); |
+ future.catchError(expectAsync1((error) { |
+ expect(predicate(error), isTrue); |
})); |
} |