test/go/perm: Fix to work with new select.
This commit is contained in:
parent
1f35cc798d
commit
b2f9c00e0f
1 changed files with 7 additions and 7 deletions
|
@ -42,23 +42,23 @@ it(`perm`, function() {
|
||||||
cs.shift(); // ERROR "receive"
|
cs.shift(); // ERROR "receive"
|
||||||
});
|
});
|
||||||
|
|
||||||
Channel.select(
|
Channel.select([
|
||||||
c.push(0), // ok
|
c.push(0), // ok
|
||||||
c.shift() // ok
|
c.shift() // ok
|
||||||
);
|
]);
|
||||||
|
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
Channel.select(
|
Channel.select([
|
||||||
cr.push(0) // ERROR "send"
|
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(() => {
|
assert.throws(() => {
|
||||||
Channel.select(cs.shift()); // ERROR "receive"
|
Channel.select([cs.shift()]); // ERROR "receive"
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue