From 1d2656b832483709fd5f47aa495b02594869a62c Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Fri, 25 Oct 2024 16:36:07 -0700 Subject: [PATCH] test: Fix flake with identical consecutively autogenerated email addresses Fixes: #1026 --- test/example_data.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/example_data.dart b/test/example_data.dart index 5601e8356d..0617f10cdb 100644 --- a/test/example_data.dart +++ b/test/example_data.dart @@ -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.