From b5c96177e404118e56dab50b546843068fda3cd7 Mon Sep 17 00:00:00 2001 From: David Braun Date: Wed, 18 Oct 2017 10:36:33 -0400 Subject: [PATCH] Channel.select test: Simplify. --- test/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/index.js b/test/index.js index d88153a..be85c78 100644 --- a/test/index.js +++ b/test/index.js @@ -99,10 +99,12 @@ describe(`Channel`, function() { it(`allows for non-blocking selects`, async function() { const a = Channel(); const b = Channel(); - const nonBlocking = Channel(); - nonBlocking.close(); - switch (await Channel.select([a.shift(), b.push(0), nonBlocking.shift()])) { + switch (await Channel.select([ + a.shift(), + b.push(0), + Channel.of().shift() + ])) { case a: assert(false); break;