mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 11:14:57 +08:00

We trigger `/topics/timings` requests without ever caring about the promise afterwards, so they can bleed from one test to another. If you're very unlucky, this might happen and then the next test is testing a subfolder, which means you end up with a path like `/forum/topics/timings` which is not caught by pretender and causes the suite to fail. It's easier (and faster) to never send these requests in test mode than to track the ajax requests and abort them between runs.