Skip to content

fix: Error when run very_good test #320

@aldychris

Description

@aldychris

Description
No error when run flutter test but It's return this exception when Im try run test with very_good cli,

aldychris@Aldys-MBP my_flutter % very_good test
Running "flutter test" in /Users/aldychris/DevArea/Flutter/Workspace/my_flutter ✓ Optimizing tests (1.7s)

00:08 +153: ...rentUpgradablePlans passes, emit success state with isProceedEnable value from DFUnhandled exception:
RangeError (end): Invalid value: Not in inclusive range 154..234: 235
#0      RangeError.checkValidRange (dart:core/errors.dart:355:9)
#1      _StringBase.substring (dart:core-patch/string_patch.dart:400:27)
#2      _extension#4.truncated (package:very_good_cli/src/cli/flutter_cli.dart:386:30)
#3      _flutterTest.<anonymous closure> (package:very_good_cli/src/cli/flutter_cli.dart:304:36)
#4      _RootZone.runUnaryGuarded (dart:async/zone.dart:1618:10)
#5      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#6      _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#7      _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
#8      _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
#9      _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#10     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#11     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:122:13)
#12     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:193:5)

We are using mockito: 5.0.17 on the test case

Steps To Reproduce

  1. Run very_good test on root project

Expected Behavior
No error

Additional Context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions