1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

fix travis errors

This commit is contained in:
Alex Kocharin 2015-03-28 21:30:19 +03:00
parent 9047e28074
commit 8a3a03805e
3 changed files with 10 additions and 4 deletions

@ -2,6 +2,8 @@ language: node_js
node_js:
- '0.10'
- '0.12'
- 'iojs-1.0'
- 'iojs-1.6'
- 'iojs'
sudo: false
script: npm install . && npm run test-travis

@ -55,7 +55,9 @@ devDependencies:
# Tools required for testing
#
rimraf: '>=2.2.5 <3.0.0-0'
mocha: '>=1.17.0 <2.0.0-0'
# https://github.com/mochajs/mocha/issues/1614
mocha: '<= 1.20'
#
# Linting tools

@ -26,7 +26,7 @@ describe('Func', function() {
server.pid = body.pid
exec('lsof -p ' + Number(server.pid), function(err, result) {
assert.equal(err, null)
server.fdlist = result
server.fdlist = result.replace(/ +/g, ' ')
cb()
})
})
@ -64,12 +64,14 @@ describe('Func', function() {
async.map([server, server2], function(server, cb) {
exec('lsof -p ' + Number(server.pid), function(err, result) {
assert.equal(err, null)
assert.equal(server.fdlist, result.split('\n').filter(function(q) {
result = result.split('\n').filter(function(q) {
if (q.match(/TCP .*->.* \(ESTABLISHED\)/)) return false
if (q.match(/\/libcrypt-[^\/]+\.so/)) return false
if (q.match(/\/node_modules\/crypt3\/build\/Release/)) return false
return true
}).join('\n'))
}).join('\n').replace(/ +/g, ' ')
assert.equal(server.fdlist, result)
cb()
})
}, cb)