waku-org / nwaku

Waku node and protocol.
Other
201 stars 52 forks source link

chore: testing nwaku's DNS discovery in status-go against fake DNS server #3119

Open gabrielmer opened 1 month ago

gabrielmer commented 1 month ago

Background

In nwaku's integration in Status Go, we are testing DNS discovery against the fleets: https://github.com/status-im/status-go/blob/5ec906558c470d023a6e8ad36c898f102a10ee28/wakuv2/nwaku_test.go#L171

It would be better that instead of adding unnecessary traffic to our fleets, we create a fake DNS server in Go as a test utility to help us perform the DNS discovery.

Here's an extremely buggy commit that can be used as a reference on how to start https://github.com/status-im/status-go/commit/f0c039318af971d56d1bbda903aadacf9dda04dc