Skip to content

Tests: Ensure no timers are running at the end of each test #1920

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

Merged
merged 4 commits into from
May 16, 2020

Conversation

mgol
Copy link
Member

@mgol mgol commented May 13, 2020

This helps fix issues that make tooltip tests sometimes fail when run against
jQuery 3.2 or newer due to timing differences.

Reviewing by commit might be easier; the third commit is the biggest one but it just adds proper afterEach callbacks to all the test modules; most of the actual logic is in the other, much smaller commits.

@mgol mgol requested review from fnagel and arschmitz May 13, 2020 22:13
Copy link
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

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

+1 by reading

mgol added 4 commits May 16, 2020 08:41
This helps fix issues that make tooltip tests sometimes fail when run against
jQuery 3.2 or newer due to timing differences.

This commit adds a function to be attached at `afterEach` & attaches it to
`common.testWidget`.
This helps fix issues that make tooltip tests sometimes fail when run against
jQuery 3.2 or newer due to timing differences.

This commit attaches the `moduleAfterEach` function with timer checks to most
test suites.
@mgol mgol force-pushed the intertest-leaks branch from edbeffc to a6271df Compare May 16, 2020 06:42
@mgol mgol merged commit e7a10c7 into jquery:master May 16, 2020
@mgol mgol deleted the intertest-leaks branch May 16, 2020 07:16
@mgol mgol added this to the 1.13 milestone Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants