Skip to content

Commit 385e383

Browse files
committed
Update futures_tests.rs
1 parent 445ad71 commit 385e383

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/futures_tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn test_futures_join() {
1010
let (mut tx1, mut rx1) = futures::channel::mpsc::channel::<usize>(1);
1111
let (mut tx2, mut rx2) = futures::channel::mpsc::channel::<usize>(1);
1212
executor
13-
.spawn_local("ThreadedFuture", async move {
13+
.spawn("ThreadedFuture", async move {
1414
let (a, b) = futures::join!(rx1.next(), rx2.next());
1515
assert_eq!(a.unwrap(), 10);
1616
assert_eq!(b.unwrap(), 20);
@@ -20,7 +20,7 @@ fn test_futures_join() {
2020
let (mut tx3, mut rx3) = futures::channel::mpsc::channel::<usize>(1);
2121
let (mut tx4, mut rx4) = futures::channel::mpsc::channel::<usize>(1);
2222
executor
23-
.spawn_local("LocalFuture", async move {
23+
.spawn("LocalFuture", async move {
2424
let (a, b) = futures::join!(rx3.next(), rx4.next());
2525
assert_eq!(a.unwrap(), 10);
2626
assert_eq!(b.unwrap(), 20);
@@ -47,7 +47,7 @@ fn test_futures_select() {
4747
let (mut tx1, mut rx1) = futures::channel::mpsc::channel::<usize>(1);
4848
let (_tx2, mut rx2) = futures::channel::mpsc::channel::<usize>(1);
4949
executor
50-
.spawn_local("ThreadedFuture", async move {
50+
.spawn("ThreadedFuture", async move {
5151
futures::select! {
5252
data = rx1.next() => {
5353
assert_eq!(data.unwrap(), 10);
@@ -60,7 +60,7 @@ fn test_futures_select() {
6060
let (mut tx3, mut rx3) = futures::channel::mpsc::channel::<usize>(1);
6161
let (_tx4, mut rx4) = futures::channel::mpsc::channel::<usize>(1);
6262
executor
63-
.spawn_local("LocalFuture", async move {
63+
.spawn("LocalFuture", async move {
6464
futures::select! {
6565
data = rx3.next() => {
6666
assert_eq!(data.unwrap(), 10);

0 commit comments

Comments
 (0)