 
     XCTAssertEqual(response.value?.statusCode, 206)
 
-    let fileData = url.map(transform: { try FileHandle(forReadingFrom: $0).readDataToEndOfFile() })
+    let fileData = url.map(transform: { try FileHandle(forReadingFrom: $0).availableData })
     XCTAssertEqual(try fileData.get(), URLSessionResumeTests.largeData)
 #endif
 

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


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