| Index: test/credentials_test.dart
|
| diff --git a/test/credentials_test.dart b/test/credentials_test.dart
|
| index f4d8886e863bdcbf3a751e4ee97b2eeff33cd537..cedea6b2d901cedc147c157553f91e4ebd7ebbeb 100644
|
| --- a/test/credentials_test.dart
|
| +++ b/test/credentials_test.dart
|
| @@ -231,7 +231,13 @@ void main() {
|
| new oauth2.Credentials.fromJson(JSON.encode(map));
|
|
|
| test("should load the same credentials from toJson", () {
|
| + // Round the expiration down to milliseconds since epoch, since that's
|
| + // what the credentials file stores. Otherwise sub-millisecond time gets
|
| + // in the way.
|
| var expiration = new DateTime.now().subtract(new Duration(hours: 1));
|
| + expiration = new DateTime.fromMillisecondsSinceEpoch(
|
| + expiration.millisecondsSinceEpoch);
|
| +
|
| var credentials = new oauth2.Credentials(
|
| 'access token',
|
| refreshToken: 'refresh token',
|
|
|