mutablelimiter: Fix flakey test
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: keegancsmith
If a machine has high load there is a chance that TestLimiter would fail. "ctx3" has a timeout of 250ms, which is low enough that the call to SetLimit won't cancel contexts in time. So we increase the timeout drastically to reduce the chance of the flakey failure.
Additionally we use a better pattern for waiting on "ctx1" to be cancelled.
Push commits to the source branch or add previously merged commits to review them.