Index: utils/tests/pub/oauth2_test.dart |
diff --git a/utils/tests/pub/oauth2_test.dart b/utils/tests/pub/oauth2_test.dart |
index 560e4a5b2972b50301cfafdb70b6a762fc6697fc..a204e665b09d8cb53789df5b6d08975b823044a0 100644 |
--- a/utils/tests/pub/oauth2_test.dart |
+++ b/utils/tests/pub/oauth2_test.dart |
@@ -57,7 +57,7 @@ main() { |
var server = new ScheduledServer(); |
credentialsFile(server, 'access token', |
refreshToken: 'refresh token', |
- expiration: new Date.now().subtract(new Duration(hours: 1))) |
+ expiration: new DateTime.now().subtract(new Duration(hours: 1))) |
.scheduleCreate(); |
var pub = startPubLish(server); |
@@ -95,7 +95,7 @@ main() { |
'authenticates again and saves credentials.json', () { |
var server = new ScheduledServer(); |
credentialsFile(server, 'access token', |
- expiration: new Date.now().subtract(new Duration(hours: 1))) |
+ expiration: new DateTime.now().subtract(new Duration(hours: 1))) |
.scheduleCreate(); |
var pub = startPubLish(server); |