Skip to content

Commit c958fa8

Browse files
committed
Use clock.now()
1 parent 372b6ec commit c958fa8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/test/package/api_export/exported_api_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import 'dart:io';
77
import 'dart:typed_data';
88

99
import 'package:_pub_shared/data/package_api.dart';
10+
import 'package:clock/clock.dart';
1011
import 'package:gcloud/storage.dart';
1112
import 'package:googleapis/storage/v1.dart' show DetailedApiRequestError;
1213
import 'package:pub_dev/package/api_export/exported_api.dart';
@@ -55,7 +56,7 @@ void main() {
5556
pubspec: {},
5657
archiveUrl: '-',
5758
archiveSha256: '-',
58-
published: DateTime.now(),
59+
published: clock.now(),
5960
),
6061
versions: [],
6162
);

0 commit comments

Comments
 (0)