Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeauchamp committed Jan 25, 2023
1 parent 02f0fcd commit a950b0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/xo-vmdk-to-vhd/src/vmdk-to-vhd.integ.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ test('Can generate a small VMDK file', async () => {
]
const fileName = 'result.vmdk'
const geometry = { sectorsPerTrackCylinder: 63, heads: 16, cylinders: 10402 }
const readStream = asyncIteratorToStream(
await generateVmdkData(fileName, 2 * blockSize, blockSize, blockGenerator, geometry)
)
const { iterator } = await await generateVmdkData(fileName, 2 * blockSize, blockSize, blockGenerator, geometry)
const readStream = asyncIteratorToStream(iterator)
const pipe = readStream.pipe(createWriteStream(fileName))
await fromEvent(pipe, 'finish')

Expand Down

0 comments on commit a950b0a

Please sign in to comment.