test/go/perm: Fix to work with new select.

This commit is contained in:
David Braun 2017-10-18 15:10:11 -04:00
parent 1f35cc798d
commit b2f9c00e0f
No known key found for this signature in database
GPG key ID: 5694EEC4D129BDCF

View file

@ -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(() => {