Skip to content

Commit

Permalink
dont set timer in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto committed Jan 31, 2025
1 parent a04e3dd commit ba17a14
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions clients/sail_ui/lib/providers/binary_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ class BinaryProvider extends ChangeNotifier {
_checkReleaseDates();

// Set up periodic release date checks
_releaseCheckTimer = Timer.periodic(
const Duration(minutes: 1),
(_) => _checkReleaseDates(),
);
if (!Environment.isInTest) {
_releaseCheckTimer = Timer.periodic(
const Duration(minutes: 1),
(_) => _checkReleaseDates(),
);
}
}

void _setupDirectoryWatcher() {
Expand Down

0 comments on commit ba17a14

Please sign in to comment.