-
Notifications
You must be signed in to change notification settings - Fork 90
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
networkless version of the server (or MongoDatabase) #58
Comments
There are no such plans. The focus of this project is to provide a Java implementation that speaks the wire protocol. What’s the problem with having a |
This requirement is not contradictory to the original aim of the project. You can still have network layer on the top of existing "backend". Sometimes it is easier to use lightweight / embedded version of the product without connection protocol (eg. h2).
That means you have to have static variable and manually manage the state (eg. drop database before/after test). Plus one can't run tests in parallel. |
Feel free to submit a PR if you have an idea how to achieve it. |
Is it acceptable if |
Unfortunately it’s not an option. Users of |
I'm not sure if this is a good idea. Once you have a dependency on the
I think that for this reason |
Yes, that's a valid point. |
Hello,
We're using mongo java server for many in-memory tests (with
MemoryBackend
). For each test there is a new TCP connection created and closed which uses unnecessary system resources.The reason it is happening for each test is because we prefer
@Rule
over@ClassRule
to avoid static fields in JUnit.Are there any plans to create lightweight version of the server (or MongoDatabase) without networking ?
Regards.
The text was updated successfully, but these errors were encountered: