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

test(i): Don't setup http and p2p by default in test suite #2644

Merged

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #2643

Description

Don't setup http and p2p by default in test suite.

This is a regression I introduced in #2641 (sorry for the bother) - we set p2p and http up later. As the new, unused, P2P and http servers werent cleaned up at the end of the test, this had quite a bad effect on test suite memory consumption.

Later, I think the surrounding code that sets up p2p and http could probably be changed later to make better use of node.New, but IMO this is good enough for now (we have other things to do).

I think the surrounding code that sets up p2p and http could probably be changed later to make better use of `node.New`, but IMO this is good enough for now (we have other things to do).
@AndrewSisley AndrewSisley added the area/testing Related to any test or testing suite label May 23, 2024
@AndrewSisley AndrewSisley added this to the DefraDB v0.12 milestone May 23, 2024
@AndrewSisley AndrewSisley requested a review from a team May 23, 2024 17:58
@AndrewSisley AndrewSisley self-assigned this May 23, 2024
Copy link
Member

@nasdf nasdf left a comment

Choose a reason for hiding this comment

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

LGTM

@AndrewSisley AndrewSisley merged commit 3c8871a into sourcenetwork:develop May 23, 2024
29 of 30 checks passed
@AndrewSisley AndrewSisley deleted the 2643-int-test-startup-leak branch May 23, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Related to any test or testing suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration tests setupDatabase is spinning up p2p and http servers
2 participants