         result in
         do {
           let url = try result.get().0
-          let data = try FileHandle(forReadingFrom: url).readDataToEndOfFile()
+          let data = try FileHandle(forReadingFrom: url).availableData
           resolver.resolve(value: data)
         }
         catch URLSessionError.interruptedDownload(let error, let data) {


    XCTAssertEqual(response.value?.statusCode, 206)

    let fileData = url.map(transform: { try FileHandle(forReadingFrom: $0).readDataToEndOfFile() })
    XCTAssertEqual(try fileData.get(), URLSessionResumeTests.largeData)
#endif


    XCTAssert(path.isFileURL)
    let file = try FileHandle(forReadingFrom: path)
    defer { file.closeFile() }
    let data = file.availableData
    XCTAssert(data.count > 0)
    XCTAssert(response.statusCode == 404)

