Closed alestiago closed 1 month ago
Thanks for the issue and the detailed instructions! We'll have a look
For some quick fix you can wrap it in a runAsync
await tester.runAsync(() async {
await tester.pumpWidget(const MyApp());
await tester.tap(find.byIcon(Icons.add));
await tester.pumpAndSettle();
expect(find.text('Hello Sentry'), findsWidgets);
});
the reason for the failure is the change from
return _appStartCompleter.future;
to
return _appStartCompleter.future
.timeout(_timeoutDuration, onTimeout: () => null);
still trying to figure out if therere is a way around that
@buenaflor any updates regarding a proper fix to this issue besides the quick-fix?
Sorry :bow: I haven't come to this issue yet. I'll keep you posted
Just chiming in again since it has been over a month, are there any updates?
hey, we're currently looking at re-designing the parts that are affected by these app start completers since this has also caused some issues in other areas for some users.
hey this is going to be addressed as part of improving the app start integration so this should be fixed soon :)
Platform
Flutter Mobile
Obfuscation
Enabled
Debug Info
Enabled
Doctor
Version
8.2.0
Steps to Reproduce
Create a Flutter Application:
Add
package:sentry_flutter
8.2.0 as a dependency:Update
lib/main.dart
to initialise Sentry:Update the
_incrementCounter
function to navigate somewhere:Update the test in
widget_test
to navigate and assert for the text:Run the test, the test should succeed.
Add a
SentryNavigatorObserver
to theMaterialApp
inmain.dart
:Run the test again, the test now fails.
The test fails due to:
Change the
package:sentry_flutter
version from 8.2.0 to 8.1.0:Run the test again, now the test succeeds.
Expected Result
The test succeeds in
package:sentry_flutter
v8.1.0, it should also succeed in v8.2.0.Actual Result
A test fails in
package:sentry_flutter
v8.2.0, but not in v8.1.0.Are you willing to submit a PR?
None