MASQ-Project / MASQ-Node-issues

This repo contains the issues that are used for planning MASQ Node product work. It has no code in it, only GitHub issue tickets
https://masq.ai/
31 stars 12 forks source link

Create function wait_for_gossip #803

Open czarte opened 3 months ago

czarte commented 3 months ago

Create function wait_for_gossip, that ensures the Gossip process is over to perform requests for web content in tests.

In this moment we are just starting and shutting down the nodes in the multinode integration test, because the process of starting and shutting down the cluster of the nodes, because the process was quick enough to process gossips immediately. So construction of the neighborhood was fast enough to process requests in such a short time in tests. In GH-788 we implemented construction of CountryBlocks into the memory, so node is starting bit delayed and we need to wait a bit for gossip to process and construct Neighborhood, so we need to check if nodes already created the Patch to successfully perform the request in the multinode tests.

multinode_integration_tests/tests/bookkeeping_test.rs