Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce flakiness on workflow-ID-specific ratelimit test (cadence-work…
…flow#5986) This test had three issues: 1. it's *very* time-sensitive, spending >=200ms across all StartWorkflowExecution calls will allow one (or more) of the "should be limited" calls to succeed. This is now more permissive. 2. it seems to misunderstand / be misleading about how ratelimits work. The reason the first 5 calls can be done "immediately" is due to the burst value, not the RPS itself. We just init the burst with that value. 3. if `assert.ErrorAs` failed, the next line would panic because the error value was nil. `require` would work too, but switching to `if assert.ErrorAs(...) {...}` lets the rest of the checks continue, and it's relatively simple. These are now fixed.
- Loading branch information