<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTestError/timeoutWhileWaiting",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "s:SC15XCTestErrorCodeLeV19timeoutWhileWaitingSoAAVvpZ"
  },
  "title" : "timeoutWhileWaiting"
}
-->

# timeoutWhileWaiting

A code that represents a timeout the test encountered while waiting to fulfill expectations.

```
static var timeoutWhileWaiting: XCTestError.Code { get }
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)