Remove try catch from provided functions, user handles errors
This commit is contained in:
@@ -407,7 +407,7 @@ test.cb("accumulatorBy() rolling", t => {
|
||||
source.push(null);
|
||||
});
|
||||
|
||||
test.cb(
|
||||
test.cb.skip(
|
||||
"accumulatorBy() rolling should emit error when key iteratee throws",
|
||||
t => {
|
||||
t.plan(2);
|
||||
@@ -511,7 +511,7 @@ test.cb("accumulatorBy() sliding", t => {
|
||||
source.push(null);
|
||||
});
|
||||
|
||||
test.cb(
|
||||
test.cb.skip(
|
||||
"accumulatorBy() sliding should emit error when key iteratee throws",
|
||||
t => {
|
||||
t.plan(2);
|
||||
|
||||
@@ -354,7 +354,7 @@ test("demux() should emit one drain event when writing 6 items with highWaterMar
|
||||
});
|
||||
});
|
||||
|
||||
test.cb(
|
||||
test.cb.only(
|
||||
"demux() should emit drain event when third stream is bottleneck",
|
||||
t => {
|
||||
t.plan(8);
|
||||
@@ -405,7 +405,7 @@ test.cb(
|
||||
t.end(err);
|
||||
});
|
||||
|
||||
// This event should be received after at least 3 * slowProcessorSpeed (two are read immediately by first)
|
||||
// This event should be received after at least 5 * slowProcessorSpeed (two are read immediately by first and second, 5 remaining in demux before drain event)
|
||||
_demux.on("drain", () => {
|
||||
expect(_demux._writableState.length).to.be.equal(0);
|
||||
expect(performance.now() - start).to.be.greaterThan(
|
||||
@@ -445,7 +445,7 @@ test.cb(
|
||||
const sink = new Writable({
|
||||
objectMode: true,
|
||||
write(chunk, encoding, cb) {
|
||||
expect(chunk.mapped).to.deep.equal([1, 2, 3]);
|
||||
expect(chunk.mapped).to.deep.equal([1, 2]);
|
||||
t.pass();
|
||||
pendingReads--;
|
||||
if (pendingReads === 0) {
|
||||
@@ -493,7 +493,7 @@ test.cb(
|
||||
t.end(err);
|
||||
});
|
||||
|
||||
// This event should be received after at least 3 * slowProcessorSpeed (two are read immediately by first)
|
||||
// This event should be received after at least 3 * slowProcessorSpeed (two are read immediately by first and second, 3 remaining in demux before drain event)
|
||||
_demux.on("drain", () => {
|
||||
expect(_demux._writableState.length).to.be.equal(0);
|
||||
expect(performance.now() - start).to.be.greaterThan(
|
||||
|
||||
@@ -58,7 +58,7 @@ test.cb("filter() filters elements asynchronously", t => {
|
||||
source.push(null);
|
||||
});
|
||||
|
||||
test.cb("filter() emits errors during synchronous filtering", t => {
|
||||
test.cb.skip("filter() emits errors during synchronous filtering", t => {
|
||||
t.plan(2);
|
||||
const source = new Readable({ objectMode: true });
|
||||
source
|
||||
@@ -86,7 +86,7 @@ test.cb("filter() emits errors during synchronous filtering", t => {
|
||||
source.push(null);
|
||||
});
|
||||
|
||||
test.cb("filter() emits errors during asynchronous filtering", t => {
|
||||
test.cb.skip("filter() emits errors during asynchronous filtering", t => {
|
||||
t.plan(2);
|
||||
const source = new Readable({ objectMode: true });
|
||||
source
|
||||
|
||||
@@ -48,7 +48,7 @@ test.cb("flatMap() maps elements asynchronously", t => {
|
||||
source.push(null);
|
||||
});
|
||||
|
||||
test.cb("flatMap() emits errors during synchronous mapping", t => {
|
||||
test.cb.skip("flatMap() emits errors during synchronous mapping", t => {
|
||||
t.plan(2);
|
||||
const source = new Readable({ objectMode: true });
|
||||
source
|
||||
@@ -73,7 +73,7 @@ test.cb("flatMap() emits errors during synchronous mapping", t => {
|
||||
source.push(null);
|
||||
});
|
||||
|
||||
test.cb("flatMap() emits errors during asynchronous mapping", t => {
|
||||
test.cb.skip("flatMap() emits errors during asynchronous mapping", t => {
|
||||
t.plan(2);
|
||||
const source = new Readable({ objectMode: true });
|
||||
source
|
||||
|
||||
@@ -46,7 +46,7 @@ test.cb("reduce() reduces elements asynchronously", t => {
|
||||
source.push(null);
|
||||
});
|
||||
|
||||
test.cb("reduce() emits errors during synchronous reduce", t => {
|
||||
test.cb.skip("reduce() emits errors during synchronous reduce", t => {
|
||||
t.plan(2);
|
||||
const source = new Readable({ objectMode: true });
|
||||
source
|
||||
@@ -71,7 +71,7 @@ test.cb("reduce() emits errors during synchronous reduce", t => {
|
||||
source.push(null);
|
||||
});
|
||||
|
||||
test.cb("reduce() emits errors during asynchronous reduce", t => {
|
||||
test.cb.skip("reduce() emits errors during asynchronous reduce", t => {
|
||||
t.plan(2);
|
||||
const source = new Readable({ objectMode: true });
|
||||
source
|
||||
|
||||
Reference in New Issue
Block a user