class func wait(for expectations: [XCTestExpectation],
timeout seconds: TimeInterval) -> XCTWaiter.Result
This method is used to wait until ALL expectations must be fulfilled.
But in my test, I have 2 expectations and I want the test will stop waiting if ANY of them fulfilled.
Is there a better solution?
Thanks very much