Browse Source

nextcloud: Fix tests expecting recent modified dates

pull/161/head
jld3103 2 years ago
parent
commit
2754837932
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 4
      packages/nextcloud/test/webdav.dart

4
packages/nextcloud/test/webdav.dart

@ -49,7 +49,7 @@ Future run(final DockerImage image) async {
final file = files.singleWhere((final f) => f.name == 'Nextcloud.png');
expect(file.hasPreview, isTrue);
expect(file.mimeType, 'image/png');
expectDateInReasonableTimeRange(file.lastModified!, DateTime.now());
expect(file.lastModified!.isBefore(DateTime.now()), isTrue);
expect(file.size!, 50598);
});
@ -168,7 +168,7 @@ Future run(final DockerImage image) async {
);
expect(file.hasPreview, isTrue);
expect(file.mimeType, 'image/png');
expectDateInReasonableTimeRange(file.lastModified!, DateTime.now());
expect(file.lastModified!.isBefore(DateTime.now()), isTrue);
expect(file.size!, 50598);
});

Loading…
Cancel
Save