diff --git a/packages/neon/neon/test/timer_bloc_test.dart b/packages/neon/neon/test/timer_bloc_test.dart index 2fcf71d4..5fb69cb6 100644 --- a/packages/neon/neon/test/timer_bloc_test.dart +++ b/packages/neon/neon/test/timer_bloc_test.dart @@ -16,7 +16,7 @@ void main() { await Future.delayed(duration); expect(stopwatch.elapsedMilliseconds, greaterThan(duration.inMilliseconds)); - expect(stopwatch.elapsedMilliseconds, lessThan(duration.inMilliseconds * 1.1)); + expect(stopwatch.elapsedMilliseconds, lessThan(duration.inMilliseconds * 2)); expect(TimerBloc().callbacks[duration.inSeconds], contains(callback)); expect(TimerBloc().timers[duration.inSeconds], isNot(isNull)); }); diff --git a/packages/nextcloud/test/webdav_test.dart b/packages/nextcloud/test/webdav_test.dart index f01a11cb..ef7391ec 100644 --- a/packages/nextcloud/test/webdav_test.dart +++ b/packages/nextcloud/test/webdav_test.dart @@ -301,7 +301,7 @@ void main() { destination, onProgress: progressValues.add, ); - expect(progressValues, [100.0, 100.0]); + expect(progressValues, containsAll([100.0, 100.0])); expect(destination.readAsBytesSync(), source.readAsBytesSync()); destinationDir.deleteSync(recursive: true);