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

Will there be any support for Mock Dragonboat Server to be used in the integration test ? #344

Open
abhishektakale opened this issue Feb 26, 2024 · 1 comment

Comments

@abhishektakale
Copy link

abhishektakale commented Feb 26, 2024

So the problem we are facing with dragonboat is that, whenever we are running integration tests that require a Dragonboat instance to be running, we have to start the dragonboat nodehost at the start of each test. That results in around 4 minutes of execution time.

We tried using another approach for the same, i.e., writing a TestMain test and running Setup() and Breakdown(). But we observed that previously tests that took around 3s of time, now they were taking around 10s.

It would be very helpful if a mock server is there that will make things easy. Similar to what Etcdserver provides. In case we are missing something and it is already available, please guide me on the correct path.

Thank you so much in advance.

@kevburnsjr
Copy link
Contributor

kevburnsjr commented Feb 26, 2024

My integration tests run in < 20 seconds when creating, deleting and joining multiple shards and replicas across a dozen hosts.
https://github.com/logbn/zongzi/blob/main/agent_integration_test.go

It sounds like you need to refactor your tests to share a single cluster rather than creating a new cluster for each test.

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

No branches or pull requests

2 participants