Index: utils/tests/pub/oauth2_test.dart |
diff --git a/utils/tests/pub/oauth2_test.dart b/utils/tests/pub/oauth2_test.dart |
index 634826e4935da2e59550877c8f4122694db0fb9e..ef061237d3a7e8ba72bafce2b20db9b494f93974 100644 |
--- a/utils/tests/pub/oauth2_test.dart |
+++ b/utils/tests/pub/oauth2_test.dart |
@@ -61,7 +61,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); |
@@ -101,7 +101,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); |