Skip to content

Commit

Permalink
Add node v12 to .travis.yml (#410)
Browse files Browse the repository at this point in the history
* Add node v12 to .travis.yml

* Updated to Node v10.15.3

* Remove error checks
  • Loading branch information
mcollina authored May 28, 2019
1 parent 32c167d commit ab4fc9c
Show file tree
Hide file tree
Showing 113 changed files with 546 additions and 116 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ matrix:
env: CMD=test
- node_js: 10
env: CMD=test
- node_js: 12
env: CMD=test
- node_js: stable
env: CMD=test-browsers
addons:
Expand Down
2 changes: 1 addition & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function processTestFile (file) {
if (testReplace[file])
replacements = replacements.concat(testReplace[file])

processFile(url, out, replacements, ';require(\'tap\').pass(\'sync run\');var _list = process.listeners(\'uncaughtException\'); process.removeAllListeners(\'uncaughtException\'); _list.pop(); _list.forEach((e) => process.on(\'uncaughtException\', e));')
processFile(url, out, replacements, ';(function () { var t = require(\'tap\'); t.pass(\'sync run\'); })();var _list = process.listeners(\'uncaughtException\'); process.removeAllListeners(\'uncaughtException\'); _list.pop(); _list.forEach((e) => process.on(\'uncaughtException\', e));')
}

//--------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion build/test-replacements.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module.exports['common.js'] = [
+ ' knownGlobals.push(DTRACE_NET_SOCKET_WRITE);\n'
+ ' if (global.__coverage__)\n'
+ ' knownGlobals.push(__coverage__);\n'
+ '\'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,asap,Observable,regeneratorRuntime,_babelPolyfill\'.split(\',\').filter(function (item) { return typeof global[item] !== undefined}).forEach(function (item) {knownGlobals.push(global[item])})'
+ '\'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,queueMicrotask,asap,Observable,regeneratorRuntime,_babelPolyfill\'.split(\',\').filter(function (item) { return typeof global[item] !== undefined}).forEach(function (item) {knownGlobals.push(global[item])})'
+ ' /*</replacement>*/\n\n$1'
]

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"nyc": "^11.0.0",
"pump": "^3.0.0",
"rimraf": "^2.6.2",
"tap": "^11.0.0",
"tap": "^12.0.0",
"tape": "^4.9.0",
"tar-fs": "^1.16.2",
"util-promisify": "^2.1.0"
},
"scripts": {
"test": "tap -j 4 test/parallel/*.js test/ours/*.js",
"ci": "TAP=1 tap test/parallel/*.js test/ours/*.js | tee test.tap",
"test": "tap -J --no-esm test/parallel/*.js test/ours/*.js",
"ci": "TAP=1 tap --no-esm test/parallel/*.js test/ours/*.js | tee test.tap",
"test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js",
"test-browser-local": "airtap --open --local -- test/browser.js",
"cover": "nyc npm test",
Expand Down
6 changes: 3 additions & 3 deletions test/browser/test-stream-pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ module.exports = function (t) {
t.throws(function () {
pipeline(_read, function () {
});
}, /ERR_MISSING_ARGS/);
});
t.throws(function () {
pipeline(function () {
});
}, /ERR_MISSING_ARGS/);
});
t.throws(function () {
pipeline();
}, /ERR_MISSING_ARGS/);
});
t.end();
});
t.test('pipeline error', function (t) {
Expand Down
2 changes: 1 addition & 1 deletion test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ if (typeof constructor == 'function') knownGlobals.push(constructor);
if (typeof DTRACE_NET_SOCKET_READ == 'function') knownGlobals.push(DTRACE_NET_SOCKET_READ);
if (typeof DTRACE_NET_SOCKET_WRITE == 'function') knownGlobals.push(DTRACE_NET_SOCKET_WRITE);
if (global.__coverage__) knownGlobals.push(__coverage__);
'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,asap,Observable,regeneratorRuntime,_babelPolyfill'.split(',').filter(function (item) {
'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,queueMicrotask,asap,Observable,regeneratorRuntime,_babelPolyfill'.split(',').filter(function (item) {
return typeof global[item] !== undefined;
}).forEach(function (item) {
knownGlobals.push(global[item]);
Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-backpressure.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ var ws = stream.Writable({
rs.pipe(ws);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-big-packet.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ function indexOf(xs, x) {

;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-big-push.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ r.once('readable', function () {
});
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-buffer-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ assert.strictEqual(shifted, buf);
assert.deepStrictEqual(list, new BufferList());
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-decoder-objectmode.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ assert.strictEqual(readable.read(), 'def');
assert.strictEqual(readable.read(), null);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-destroy-event-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ rs.on('error', common.mustCall(function (err) {
rs.destroy(new Error('kaboom'));
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-duplex-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ var _require2 = require('util'),
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-duplex-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ var Duplex = require('../../').Duplex;
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-duplex.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ process.on('exit', function () {
});
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-end-paused.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ process.on('exit', function () {
});
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-events-prepend.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ var r = new Readable();
r.pipe(w);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-finished.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ var promisify = require('util-promisify');
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-ispaused.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ readable.resume();
assert.ok(!readable.isPaused());
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-objectmode-undefined.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ var _require = require('../../'),
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-once-readable-pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ var _require = require('../../'),
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-after-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ setTimeout(common.mustCall(function () {
}), 1);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-await-drain-manual-resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ writable.on('finish', common.mustCall(function () {
}));
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ var readable = new stream.Readable({
readable.pipe(writable);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-await-drain.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ reader.pipe(writer3);
reader.push(buffer);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-cleanup-pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ reader.pipe(writer1);
reader.push(buffer);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ var util = require('util');
assert.strictEqual(w.listeners('close').length, 0);
})();

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-error-handling.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ var Stream = require('stream').Stream;
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ r.pipe(w);
assert.ok(passed);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-flow-after-unpipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ rs.on('data', common.mustCallAtLeast(function () {
rs.pipe(ws);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ var _require = require('../../'),
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
Loading

0 comments on commit ab4fc9c

Please sign in to comment.