Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a flaky auth integration test by retrying the GetUser() API call #907

Merged
merged 2 commits into from Jun 16, 2020

Conversation

rsgowman
Copy link
Member

No description provided.

Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a couple of nits.


for (let i = 0; i < 3; i++) {
userRecord = await admin.auth().getUser('lastRefreshTimeUser');

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove redundant empty line. The one after the if block is ok.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

setTimeout(resolve, 1000 * Math.pow(2, i));
});
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const metadata = userRecord!.metadata;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@hiranya911 hiranya911 assigned rsgowman and unassigned hiranya911 Jun 16, 2020
@rsgowman rsgowman assigned hiranya911 and unassigned rsgowman Jun 16, 2020
Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@hiranya911 hiranya911 assigned rsgowman and unassigned hiranya911 Jun 16, 2020
@rsgowman rsgowman merged commit ebd5677 into master Jun 16, 2020
@rsgowman rsgowman deleted the rsgowman/flaky_test_delay branch June 16, 2020 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants