Skip to content

Commit

Permalink
test(auth): Prevent eventual consistency issues (#3680)
Browse files Browse the repository at this point in the history
ci(auth): Prevent eventual consistency issues
  • Loading branch information
dnys1 authored Sep 6, 2023
1 parent 14db3b4 commit 89eaa2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ jobs:
await generateForPackage(
examplePackage,
repoRelativePath: p.relative(examplePackage.path, from: rootDir.path),
// TODO(dnys1): Add example's dependency graph
dependentPackages: [
...dependentPackages,
package,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ Future<String> adminCreateUser(

_logger.debug('Successfully created user "$username"');

// Prevent eventual consistency issues caused by authenticating a user
// too quickly after creation.
await Future<void>.delayed(const Duration(milliseconds: 500));

return cognitoUsername;
}

Expand Down

0 comments on commit 89eaa2a

Please sign in to comment.