             expectation.fulfill()
         }
         
-        recovered.onError { _ in
-            XCTFail("This should not be called")
-            expectation.fulfill()
-        }
-        
         waitForExpectationsWithTimeout(1, handler: nil)
     }
     

        
        let future = Future<Int, NSError>.succeed(42)
        
        let recovered = future.recover { _ in 0 }
        
        let expectation = futureIsCompleteExpectation()
        

        
        let future = Future<Int, NSError>.succeed(42)
        
        let recovered = future.recoverWith { _ in
            XCTFail("This should not be called")
            return Future.succeed(0)
        }
        
        let expectation = futureIsCompleteExpectation()
        
        recovered.onSuccess { value in
            XCTAssertEqual(value, 42)
            expectation.fulfill()
        }
        
