-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Data: Use real timers for private APIs tests #49029
Conversation
Size Change: 0 B Total Size: 1.34 MB ℹ️ View Unchanged
|
Flaky tests detected in b40d1d4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4405456465
|
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.
Nice catch!
What?
While looking at the private API tests for
@wordpress/data
I noticed that we're using fake timers without a good reason to do so. This PR removes them and that way it defaults to using the real timers.Why?
It's not necessary for those tests to run with fake timers.
How?
We're just disabling the fake timers and the cleanup to revert to real timers. We're also removing a stray imports doc block.
Testing Instructions
Verify tests still pass.
Testing Instructions for Keyboard
None.
Screenshots or screencast
None.