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

chore: add network integration test with kademilia instead mDNS #3787

Merged
merged 12 commits into from
Mar 11, 2024

Conversation

P1sar
Copy link
Member

@P1sar P1sar commented Mar 4, 2024

Changes

While I was debugging network module I found out that our network tests using mDNS instead of Kademlia and so bypass or uses logic that is not actually used in Kademilia so I decided to implement integration test that covers producion code.

Tests

MODE=network go test ./tests/network/netwrok_integration_test.go -v

go test -tags integration github.com/ChainSafe/gossamer

Issues

Related: #3758

Primary Reviewer

@

@P1sar P1sar added S-network issues related to the dot/network package. C-simple Minor changes changes, no additional research needed. Good first issue/review. S-tests issue related to adding new tests. labels Mar 4, 2024
@jimjbrettj
Copy link
Contributor

nit/rename file to ./tests/network/network_integration_test.go

dot/network/service.go Outdated Show resolved Hide resolved
tests/network/netwrok_integration_test.go Outdated Show resolved Hide resolved
Copy link
Member

@EclesioMeloJunior EclesioMeloJunior left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jimjbrettj jimjbrettj left a comment

Choose a reason for hiding this comment

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

lgtm

@P1sar P1sar merged commit cbfdc71 into development Mar 11, 2024
24 checks passed
@P1sar P1sar deleted the p1sar/fix/peerstate-unreleased-slots branch March 11, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-simple Minor changes changes, no additional research needed. Good first issue/review. S-network issues related to the dot/network package. S-tests issue related to adding new tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants