-
Notifications
You must be signed in to change notification settings - Fork 78
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
tests: email/password resend user confirmation email #521
Conversation
Co-authored-by: Nikola Irinchev <irinchev@me.com>
Pull Request Test Coverage Report for Build 2277136314
💛 - Coveralls |
Co-authored-by: blagoev <lubo@blagoev.com>
Co-authored-by: blagoev <lubo@blagoev.com>
…thub.com/realm/realm-dart into retry_custom_confirmation_function_tests
Co-authored-by: blagoev <lubo@blagoev.com>
Co-authored-by: blagoev <lubo@blagoev.com>
…send_confirm_tests
test/credentials_test.dart
Outdated
@@ -22,13 +22,13 @@ import 'package:test/test.dart' hide test, throws; | |||
import '../lib/realm.dart'; | |||
import 'test.dart'; | |||
|
|||
Future<User> retryLogin(int retries, Future<User> Function(Credentials credentials) doFunction, Credentials credentials) async { | |||
Future<User> loginWithRetry(App app, Credentials credentials, int retryCount) async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good idea to make the retryCount
optional here or even hardcode it to some value. The only reason to have a retryCount is to make sure we don't retry forever, but there's no reason for consumers of the method to control the value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Create tests for email/password - confirm user after resend user confirmation email.