Infra 272 better rate limit handling

I think it matters in this case because if they execute in the opposite order, the test case will finish before the assertion about the warning is executed.