From b2f9c00e0fef652a30e70915f4335ddcf78b332b Mon Sep 17 00:00:00 2001 From: David Braun Date: Wed, 18 Oct 2017 15:10:11 -0400 Subject: [PATCH] test/go/perm: Fix to work with new select. --- test/go/perm.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/go/perm.js b/test/go/perm.js index 76f196c..04e4495 100644 --- a/test/go/perm.js +++ b/test/go/perm.js @@ -42,23 +42,23 @@ it(`perm`, function() { cs.shift(); // ERROR "receive" }); - Channel.select( + Channel.select([ c.push(0), // ok c.shift() // ok - ); + ]); assert.throws(() => { - Channel.select( + Channel.select([ cr.push(0) // ERROR "send" - ); + ]); }); - Channel.select(cr.shift()); // ok + Channel.select([cr.shift()]); // ok - Channel.select(cs.push(0)); // ok + Channel.select([cs.push(0)]); // ok assert.throws(() => { - Channel.select(cs.shift()); // ERROR "receive" + Channel.select([cs.shift()]); // ERROR "receive" }); assert.throws(() => {