Improve TestGlobalRateLimits that was not checking for exact behavior.
Required moving metric variables into GlobalManager fields so that tests would not read from global metric variables that were impacted by other tests.
Tidy up code.
Update default for GlobalSyncWait from 500ms to 100ms
This applies to both runAsyncHits() and runBroadcasts(). When a ratelimit is hit, it could take up to 2x this setting before it's replicated to each peer.
TestGlobalRateLimits
that was not checking for exact behavior.GlobalManager
fields so that tests would not read from global metric variables that were impacted by other tests.GlobalSyncWait
from 500ms to 100msrunAsyncHits()
andrunBroadcasts()
. When a ratelimit is hit, it could take up to 2x this setting before it's replicated to each peer.