Skip to content

Add a way to clear all IndexedDB databases in browser tests #23408

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 2 commits into from
Jan 15, 2025

Conversation

kripken
Copy link
Member

@kripken kripken commented Jan 14, 2025

Without this, browser.test_preload_caching works once, but running it again
finds the cached data and makes it error.

Also clean up the test a little while there.

Unblocks the test for #23059

@kripken kripken requested a review from sbc100 January 14, 2025 22:21
// Return a code that is easily differentiable from the 0, 1 that
// the main test returns, which is the # of cached packages.
emscripten_force_exit(99);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the actual problem here? I think assert is generally better since it send the line number and filename back. I think it should trigger onAbort which should never be confused with exit:N.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, reverted.

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

lgtm % comment

@kripken kripken merged commit 6bed395 into emscripten-core:main Jan 15, 2025
29 checks passed
@kripken kripken deleted the idb.clear branch January 15, 2025 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants