-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
BB-730: Rewrite test files using async/await syntax #979
Conversation
@MonkeyDo can you check if this file is correctly modified? If yes, I will go ahead and convert all the other test files using the same format. |
Sorry it took so long to answer @faraz16iqbal ! |
@MonkeyDo thank you for the review! I think I'll use this PR to convert all the files in one go. |
@MonkeyDo I mentioned there were some files that used the following syntax: Do these also need to be changed? |
Looking at that file with that code I don't think it's necessary to rewrite those as an async function. |
@MonkeyDo I have converted all tests files to follow the async-await syntax. Please review whenever you can! |
@MonkeyDo waiting on this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And thank you for this one as well ! :)
Hahaha no worries at all! Love contributing however I can 👯 |
Problem
BB-673:
Across the codebase, we have asynchronous code written using promises, which is hard to read and to maintain and error-prone.
Solution
All this code was rewritten using the async/await syntax.
Areas of Impact
The changes were reflected in test/common.js