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

Fix test error caused by wrong endAsync call #794

Merged
merged 1 commit into from
May 19, 2023

Conversation

pzubar
Copy link
Collaborator

@pzubar pzubar commented May 19, 2023

In some cases the tests might be failed with error Uncaught Error: endAsync called with no preceding beginAsync call thrown caused by the wrong (undefined) test waiter token.

@pzubar pzubar merged commit 5376eeb into master May 19, 2023
10 checks passed
@pzubar pzubar deleted the fix-test-error-because-of-orphan-end-call branch May 19, 2023 15:10
@pzubar pzubar added the bug label May 19, 2023
@@ -517,7 +517,7 @@ export default class AttachPopover extends Component {
if (!this._floatingElement) {
this._animationTimeout = requestAnimationFrame(() => {
animationTestWaiter.endAsync(this._animationTimeout);
this._animationTimeout = this._hide();
this._hide();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this._hide() is void and doesn't return the animationId

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.

None yet

2 participants