-
Notifications
You must be signed in to change notification settings - Fork 4
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
Split tests for client/handlers/vaults.test.ts
#839
Comments
There are tests which test multiple domains at the same time. Specifically, the tests for These tests should be broken up into separate describe blocks. And instead of using the RPC to make/get/delete files, we can use the |
This is being addressed in Polykey#838. |
While it would take longer, many RPC handlers like |
This PR is for splitting the tests... right? Generally splitting is good. You should find out WHY splitting is not possible and that is a code smell. So we don't want to needdlessly group tests that don't need to be grouped unless they are sharing a resource of some sort that you need to synchronize access to. But even then it's best that this is not an issue. |
Specification
Due to a resource leak crashing the CI, all the tests needed to be grouped. Right now, all the
VaultsSecrets
andVaults
RPC handlers are being tested in the same file. As a single file cannot be run concurrently, running the entire file is taking up to 3 minutes. It is also making the tests difficult to view/modify/debug.As such, the tests need to be split into individual files as before. This will help speed up the CI too, as the tests will finish quicker.
Additional context
Tasks
client/handlers/vault.test.ts
into its own fileThe text was updated successfully, but these errors were encountered: