This commit is contained in:
Jerry Kurian 2019-08-12 11:08:53 -04:00
parent e932adde67
commit 5112ee9540

View File

@ -1457,7 +1457,9 @@ test.cb("accumulator() rolling with key", t => {
t.deepEqual(flush, flushes[chunkIndex]); t.deepEqual(flush, flushes[chunkIndex]);
chunkIndex++; chunkIndex++;
}) })
.on("error", (e: any) => t.end) .on("error", (e: any) => {
t.end(e);
})
.on("end", () => { .on("end", () => {
t.end(); t.end();
}); });
@ -1501,7 +1503,9 @@ test.cb("accumulator() sliding", t => {
t.deepEqual(flush, flushes[chunkIndex]); t.deepEqual(flush, flushes[chunkIndex]);
chunkIndex++; chunkIndex++;
}) })
.on("error", (e: any) => t.end) .on("error", (e: any) => {
t.end(e);
})
.on("end", () => { .on("end", () => {
t.end(); t.end();
}); });
@ -1556,7 +1560,9 @@ test.cb("accumulator() sliding with key", t => {
t.deepEqual(flush, flushes[chunkIndex]); t.deepEqual(flush, flushes[chunkIndex]);
chunkIndex++; chunkIndex++;
}) })
.on("error", (e: any) => t.end) .on("error", (e: any) => {
t.end(e);
})
.on("end", () => { .on("end", () => {
t.end(); t.end();
}); });