                 expectation.fulfill()
             })
 
-        promise.fulfill(1)
+        deferred.fulfill(1)
         self.waitForExpectationsWithTimeout(1.0, handler: nil)
     }
 }

                expectation.fulfill()
            })

        promise.fulfill(1000)
        self.waitForExpectationsWithTimeout(1.0, handler: nil)
    }
}

                XCTFail()
            })

        for f in fulfillers {
            f(1)
        }

        self.waitForExpectationsWithTimeout(3.0, handler: nil)
