fix test
Some checks failed
Flutter analyze & test / flutter_analyze_and_test (push) Has been cancelled

This commit is contained in:
otsmr 2026-04-06 15:42:41 +02:00
parent 083faaa876
commit aa7a065572

View file

@ -126,6 +126,20 @@ void main() {
); );
await withClock( await withClock(
Clock.fixed(DateTime(2026, 3, 25, 19)), Clock.fixed(DateTime(2026, 3, 25, 19)),
() async {
final group2 = (await twonlyDB.groupsDao.getGroup(group.groupId))!;
expect(isItPossibleToRestoreFlames(group2), true);
},
);
await withClock(
Clock.fixed(DateTime(2026, 3, 26, 19)),
() async {
final group2 = (await twonlyDB.groupsDao.getGroup(group.groupId))!;
expect(isItPossibleToRestoreFlames(group2), true);
},
);
await withClock(
Clock.fixed(DateTime(2026, 3, 27, 19)),
() async { () async {
final group2 = (await twonlyDB.groupsDao.getGroup(group.groupId))!; final group2 = (await twonlyDB.groupsDao.getGroup(group.groupId))!;
expect(isItPossibleToRestoreFlames(group2), false); expect(isItPossibleToRestoreFlames(group2), false);