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

Convert done callbacks to async/await in more unit test files #13246

Merged
merged 5 commits into from
Apr 16, 2021

Conversation

timvandermeij
Copy link
Contributor

@timvandermeij timvandermeij commented Apr 14, 2021

This is the follow-up PR after #13222 that finalizes the conversion for the smaller and medium sized unit test files. Only three unit test files remain with done callbacks after this PR, but since they are bigger they will be done in a follow-up PR.

Using the ?w=1 parameter will help during review for most commits.

There is no asynchronous code involved here, so we can get rid of all
done callbacks here and simply use the fact that if the function call
ends without failed assertion that the test passed.
There is no asynchronous code involved here, so we can get rid of all
done callbacks here and simply use the fact that if the function call
ends without failed assertion that the test passed.
@timvandermeij timvandermeij changed the title Convert done callbacks to async/await in the more unit test files Convert done callbacks to async/await in more unit test files Apr 14, 2021
@timvandermeij
Copy link
Contributor Author

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/7f35a8ab9e3e9fd/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://3.101.106.178:8877/20bcb68ed05f83b/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/7f35a8ab9e3e9fd/output.txt

Total script time: 3.95 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/20bcb68ed05f83b/output.txt

Total script time: 5.56 mins

  • Unit Tests: Passed

Copy link
Collaborator

@Snuffleupagus Snuffleupagus 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 to me, thank you!

@timvandermeij timvandermeij merged commit cba6a3f into mozilla:master Apr 16, 2021
@timvandermeij timvandermeij deleted the unit-test-async-await-pt2 branch April 16, 2021 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants