Fix server unit tests - #113
Merged
Merged
Conversation
heskew
force-pushed
the
fix/server-unittests
branch
8 times, most recently
from
January 21, 2026 18:28
c434932 to
23cef4f
Compare
…per integration tests
heskew
force-pushed
the
fix/server-unittests
branch
from
January 21, 2026 18:31
23cef4f to
f1cc824
Compare
heskew
marked this pull request as ready for review
January 21, 2026 19:25
cap10morgan
approved these changes
Jan 21, 2026
cap10morgan
left a comment
Contributor
There was a problem hiding this comment.
Looks great! Thanks for the attention to unit vs. integration detail (I should probably go back over the tests I already migrated with this in mind) and for the very helpful tables explaining all the changes!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #84
Moved some tests to proper integration tests were real server or threads were being tested against.
Files Deleted (4 unit test files)
unitTests/server/fastifyRoutes/customFunctionsServer.test.jsunitTests/server/harperdb/hdbServer.test.jsunitTests/server/threads/manageThreads.test.jsunitTests/server/threads/socketRouter.test.jsFiles Added (3 integration tests)
integrationTests/server/operations-server.test.tsintegrationTests/server/storage-reclamation.test.tsintegrationTests/server/thread-management.test.tsFiles Modified (9)
unitTests/server/storageReclamation.test.jsunitTests/server/fastifyRoutes/operations.test.jsunitTests/server/itc/serverHandlers.test.jsunitTests/server/ipc/utility/ipcUtils.test.jsunitTests/server/serverHelpers/serverUtilities.test.jsunitTests/server/jobs/jobs.test.jsunitTests/server/threads/thread-for-tests.jsunitTests/test_utils.jsutility/environment/environmentManager.jsStats
Mapping: Deleted Unit Tests → New Integration Tests
The integration test names don't match 1:1 because functionality was consolidated:
customFunctionsServer.test.jsoperations-server.test.ts(server behavior, content negotiation)hdbServer.test.jsoperations-server.test.ts(server behavior, content negotiation)manageThreads.test.jsthread-management.test.ts(concurrent requests, thread handling)socketRouter.test.jsthread-management.test.ts(concurrent requests, thread handling)storage-reclamation.test.ts(end-to-end reclamation)Unit Tests
Integration Tests