From ea9e3c3c38d8faab5511da47f499452781703a0d Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 12 Oct 2018 15:42:00 +0100 Subject: [PATCH] fix: skip rabin tests on windows --- test/chunker-rabin.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/chunker-rabin.js b/test/chunker-rabin.js index a661072c..9ebe5b87 100644 --- a/test/chunker-rabin.js +++ b/test/chunker-rabin.js @@ -7,13 +7,21 @@ chai.use(require('dirty-chai')) const expect = chai.expect const pull = require('pull-stream') const loadFixture = require('aegir/fixtures') +const os = require('os') const rawFile = loadFixture('test/fixtures/1MiB.txt') describe('chunker: rabin', function () { this.timeout(30000) + before(function () { + if (os.platform() === 'win32') { + return this.skip() + } + }) + it('chunks non flat buffers', (done) => { + const b1 = Buffer.alloc(2 * 256) const b2 = Buffer.alloc(1 * 256) const b3 = Buffer.alloc(5 * 256)