-
-
Notifications
You must be signed in to change notification settings - Fork 255
pendingTimer when testing with SentryNavigatorObserver on sentry_flutter 8.2.0 #2103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 🙇 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
package:sentry_flutter
8.2.0 as a dependency:lib/main.dart
to initialise Sentry:_incrementCounter
function to navigate somewhere:widget_test
to navigate and assert for the text:fluter test
SentryNavigatorObserver
to theMaterialApp
inmain.dart
:fluter test
The test fails due to:
package:sentry_flutter
version from 8.2.0 to 8.1.0:fluter test
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
The text was updated successfully, but these errors were encountered: