diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-04-27 22:05:39 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-04-29 14:30:57 -0700 |
| commit | 39693e7b61c4ff3ea5a62fcc662e8ee9340c7d4f (patch) | |
| tree | 725da0fc70355cd71104236d5ab882bda4467cc7 /src/libcore | |
| parent | 37abf4bad0eda08cf4ef756310443329fa28f6cf (diff) | |
| download | rust-39693e7b61c4ff3ea5a62fcc662e8ee9340c7d4f.tar.gz rust-39693e7b61c4ff3ea5a62fcc662e8ee9340c7d4f.zip | |
test: Fix more tests.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/comm.rs | 6 | ||||
| -rw-r--r-- | src/libcore/pipes.rs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/comm.rs b/src/libcore/comm.rs index 522eebaf327..50a3bba049b 100644 --- a/src/libcore/comm.rs +++ b/src/libcore/comm.rs @@ -565,11 +565,11 @@ mod test { #[test] fn test_oneshot() { - let (c, p) = oneshot::init(); + let (p, c) = oneshot(); - oneshot::client::send(c, ()); + c.send(()); - recv_one(p) + p.recv() } #[test] diff --git a/src/libcore/pipes.rs b/src/libcore/pipes.rs index 7364e50cc04..95b24d20a4b 100644 --- a/src/libcore/pipes.rs +++ b/src/libcore/pipes.rs @@ -885,9 +885,9 @@ mod test { #[test] fn test_oneshot() { - let (c, p) = oneshot::init(); + let (p, c) = oneshot(); - oneshot::client::send(c, ()); + c.send(()); recv_one(p) } |
