Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
holybiber committed Apr 10, 2024
1 parent 704a5e1 commit 75b680f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/background_result_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void main() {
expect(await ref.read(backgroundResultProvider.notifier).checkForActivity(),
false);

// Now we set the lastChecked timestamp to an invalid value
// Trying an invalid value, a date in the future and a too-old date
await prefs.setString('lastChecked-de', 'invalid');
expect(await ref.read(backgroundResultProvider.notifier).checkForActivity(),
false);
Expand All @@ -77,7 +77,7 @@ void main() {

await prefs.setString('lastChecked-de', DateTime(2023).toIso8601String());
expect(await ref.read(backgroundResultProvider.notifier).checkForActivity(),
true);
false);

expect(ref.read(languageStatusProvider('de')).lastCheckedTimestamp,
equals(oldTime));
Expand Down

0 comments on commit 75b680f

Please sign in to comment.