Thanks to visit codestin.com
Credit goes to github.com

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

Commit ea9e3c3

Browse files
committed
fix: skip rabin tests on windows
1 parent 6529399 commit ea9e3c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/chunker-rabin.js

+8
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,21 @@ chai.use(require('dirty-chai'))
77
const expect = chai.expect
88
const pull = require('pull-stream')
99
const loadFixture = require('aegir/fixtures')
10+
const os = require('os')
1011

1112
const rawFile = loadFixture('test/fixtures/1MiB.txt')
1213

1314
describe('chunker: rabin', function () {
1415
this.timeout(30000)
1516

17+
before(function () {
18+
if (os.platform() === 'win32') {
19+
return this.skip()
20+
}
21+
})
22+
1623
it('chunks non flat buffers', (done) => {
24+
1725
const b1 = Buffer.alloc(2 * 256)
1826
const b2 = Buffer.alloc(1 * 256)
1927
const b3 = Buffer.alloc(5 * 256)

0 commit comments

Comments
 (0)