Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove On This Day regression test

laurenspriemc97dd02c331b
diff --git a/mobile/apps/photos/test/services/memories/smart_memories_source_selection_test.dart b/mobile/apps/photos/test/services/memories/smart_memories_source_selection_test.dart
index 7b2aebb657..26f55a45bf 100644
--- a/mobile/apps/photos/test/services/memories/smart_memories_source_selection_test.dart
+++ b/mobile/apps/photos/test/services/memories/smart_memories_source_selection_test.dart
@@ -197,29 +197,4 @@ void main() {
},
);
});
-
- group("On This Day dates", () {
- test("On This Day keeps cross-year dates aligned after midnight", () async {
- final currentTime = DateTime(2026, 12, 30, 12);
- final files = <EnteFile>[
- for (int i = 0; i < 3; i++)
- _file(id: i + 1, createdAt: DateTime(2024, 1, 1, 9 + i)),
- for (int i = 0; i < 2; i++)
- _file(id: i + 4, createdAt: DateTime(2025, 1, 1, 9 + i)),
- ];
-
- final memories = await TimeMemoriesCalculator.computeOnThisDayMemories(
- files,
- currentTime,
- seenTimes: const <int, int>{},
- collectionIDsToExclude: const <int>{},
- );
-
- expect(memories, hasLength(1));
- expect(
- DateTime.fromMicrosecondsSinceEpoch(memories.single.firstDateToShow),
- DateTime(2027),
- );
- });
- });
}