Skip to content

fixes for 2.13 compatibility #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/test/scala/scala/async/run/futures/FutureSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ class FutureSpec {
}

f2 foreach { _ => throw new ThrowableTest("dispatcher foreach") }
f2 onSuccess { case _ => throw new ThrowableTest("dispatcher receive") }
f2 onComplete { case Success(_) => throw new ThrowableTest("dispatcher receive") }

latch.open()

Await.result(f2, defaultTimeout) mustBe ("success")

f2 foreach { _ => throw new ThrowableTest("current thread foreach") }
f2 onSuccess { case _ => throw new ThrowableTest("current thread receive") }
f2 onComplete { case Success(_) => throw new ThrowableTest("current thread receive") }

Await.result(f3, defaultTimeout) mustBe ("SUCCESS")

Expand Down Expand Up @@ -251,7 +251,7 @@ class FutureSpec {
val result = Future.find[Int](futures)(_ == 3)
Await.result(result, defaultTimeout) mustBe (Some(3))

val notFound = Future.find[Int](futures.iterator)(_ == 11)
val notFound = Future.find[Int](futures)(_ == 11)
Await.result(notFound, defaultTimeout) mustBe (None)
}

Expand Down