I was writing a test case for a different issue and flutter test ran into a while true loop.
|
final secondsWithoutMinutes = minutes % Duration.secondsPerMinute; |
In the above line,
minutes should be
seconds. Otherwise, no seconds are ever added to the
newValue, leading to no new recurrences emitted and therefore a never ending
while loop.
Environment:
- Package version: main branch
I have the PR ready to fix this.
I was writing a test case for a different issue and
flutter testran into awhile trueloop.rrule/lib/src/iteration/frequency_interval.dart
Line 134 in 99cc424
In the above line,
minutesshould beseconds. Otherwise, no seconds are ever added to thenewValue, leading to no new recurrences emitted and therefore a never endingwhileloop.Environment:
I have the PR ready to fix this.