---
title: "waiter(_:didFulfillInvertedExpectation:)"
framework: xctest
role: symbol
role_heading: Instance Method
path: "xctest/xctwaiterdelegate/waiter(_:didfulfillinvertedexpectation:)"
---

# waiter(_:didFulfillInvertedExpectation:)

Invoked when an expectation whose isInverted property is set to true is fulfilled.

## Declaration

```swift
optional func waiter(_ waiter: XCTWaiter, didFulfillInvertedExpectation expectation: XCTestExpectation)
```

## Discussion

Discussion If the delegate is an XCTestCase instance, this will be reported as a test failure.
