Skip to content

Commit 1d2656b

Browse files
committed
test: Fix flake with identical consecutively autogenerated email addresses
Fixes: #1026
1 parent e3d5471 commit 1d2656b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/example_data.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int _nextUserId() => (_lastUserId += 1 + Random().nextInt(100));
9090
int _lastUserId = 1000;
9191

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

9696
/// Construct an example user.

0 commit comments

Comments
 (0)