Random XCTest failures with waitForExistence

I’m experiencing occasional and random UI Test test failures where waitForExistence is failing. This happens on CircleCI, but not locally. Are there any measures I can take to reduce these, other than increasing timeouts to a ridiculously long time?

It’s probably hard for readers to advise you on a problem statement of this brevity. Can you add more detail to this? What test framework and language are you using? Assuming you are doing app or browser testing, can you take a screenshot to reveal what the problem might be?