Skip to content

Commit

Permalink
test: Fix flake with identical consecutively autogenerated email addr…
Browse files Browse the repository at this point in the history
…esses

Fixes: zulip#1026
  • Loading branch information
chrisbobbe committed Oct 25, 2024
1 parent e3d5471 commit 1d2656b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/example_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int _nextUserId() => (_lastUserId += 1 + Random().nextInt(100));
int _lastUserId = 1000;

/// A random email address, different from previously generated ones.
String _nextEmail() => 'mail${_lastEmailSuffix += Random().nextInt(1000)}@example.com';
String _nextEmail() => 'mail${_lastEmailSuffix += 1 + Random().nextInt(1000)}@example.com';
int _lastEmailSuffix = 1000;

/// Construct an example user.
Expand Down

0 comments on commit 1d2656b

Please sign in to comment.