Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit c849359

Browse files
committed
chore: fix up benchmark test
1 parent 474e65b commit c849359

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/benchmark.spec.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const expect = chai.expect
99
const IPLD = require('ipld')
1010
const inMemory = require('ipld-in-memory')
1111
const bufferStream = require('async-iterator-buffer-stream')
12+
const all = require('async-iterator-all')
1213

1314
const REPEATS = 10
1415
const FILE_SIZE = Math.pow(2, 20) * 500 // 500MB
@@ -64,17 +65,15 @@ describe.skip('benchmark', function () {
6465

6566
const buf = Buffer.alloc(CHUNK_SIZE).fill(0)
6667

67-
for await (const file of importer({ // eslint-disable-line no-unused-vars
68+
await all(importer([{
6869
path: '200Bytes.txt',
6970
content: bufferStream(size, {
7071
chunkSize: CHUNK_SIZE,
7172
generator: () => {
7273
return buf
7374
}
7475
})
75-
}, ipld, options)) {
76-
// do nothing
77-
}
76+
}], ipld, options))
7877
})
7978
}
8079
})

0 commit comments

Comments
 (0)