near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.31k stars 605 forks source link

draft: Implement unit tests to validate network messages rate limits #11618

Closed Trisfald closed 4 weeks ago

Trisfald commented 1 month ago

Adding new unit tests to validate the future implementation of rate limits for peer messages.

The tests fail at the moment since the feature is not implemented.

Unfortunately there are a few sleeps here and there to check the absence of received messages.

Trisfald commented 4 weeks ago

Update: I might be able to use a test specific clock to eliminate the sleep.

Trisfald commented 4 weeks ago

Replaced by #11646