arso-project/sonar

Core: Add networking tests

Closed this issue · 1 comments

We have no proper networking tests yet. We should at least have a few tests that set up a few distinct instances, let them find each other throught the DHT, sync things, add feeds, etc.

See this test from my multifeed-corestore pr for an example of how to setup tests with corestore-swarm-networker: It starts a DHT node on localhost and then uses this as the bootstrap address for hyperswarm. Likely we still have to pass the bootstrap opt through from command line arguments and opts to the server which passes it to the core which passes it to the networker. Then adjust the test setup to make this easy (compare the linked tests above).

I added a test in 8f1f2c3 and 5061fad , so minimal basics are covered. More tests are needed, but closing this for now.