Skip to content

Commit

Permalink
ci(auth): Prevent eventual consistency issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillon Nys committed Sep 5, 2023
1 parent 8770e1e commit baa4c5e
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 @@ -320,6 +320,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 baa4c5e

Please sign in to comment.