From 5dd856deede3f5de0aa0c6a613d73aef78ad9bc4 Mon Sep 17 00:00:00 2001 From: Jerry Kurian Date: Mon, 27 Apr 2020 14:23:58 -0400 Subject: [PATCH] Update test --- tests/demux.spec.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/demux.spec.ts b/tests/demux.spec.ts index 1fd4f22..951a37d 100644 --- a/tests/demux.spec.ts +++ b/tests/demux.spec.ts @@ -864,17 +864,14 @@ test.cb("demux() should be 'destroyable'", t => { }); test.cb("Should delete idle pipelines", t => { - t.plan(6); + t.plan(5); const input = [ { key: "a", visited: [] }, { key: "b", visited: [] }, { key: "b", visited: [] }, { key: "a", visited: [] }, - { key: "c", visited: [] }, - { key: "c", visited: [] }, - { key: "c", visited: [] }, { key: "b", visited: [] }, - { key: "d", visited: [] }, + { key: "c", visited: [] }, ]; const construct = sinon.spy((destKey: string) => { const dest = map((chunk: Test) => { @@ -892,7 +889,7 @@ test.cb("Should delete idle pipelines", t => { }); demuxed.on("data", data => { - if (data.key === "d") t.end(); + if (data.key === "c") t.end(); }); for (let i = 0; i < input.length; i++) {