We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a8942 commit e8f8e74Copy full SHA for e8f8e74
core/src/test/scala/com/avsystem/commons/concurrent/TaskExtensionsTest.scala
@@ -14,10 +14,10 @@ import scala.concurrent.duration._
14
class TaskExtensionsTest extends AnyFunSuite with Matchers with ScalaCheckDrivenPropertyChecks with ScalaFutures {
15
import com.avsystem.commons.concurrent.TaskExtensions._
16
17
- private implicit val scheduler: Scheduler = Scheduler(RunNowEC)
+ private implicit val scheduler: Scheduler = Scheduler.global
18
19
test("lazyTimeout") {
20
- val result = Task.never.lazyTimeout(100.millis, "Lazy timeout").runToFuture.failed.futureValue
+ val result = Task.never.lazyTimeout(50.millis, "Lazy timeout").runToFuture.failed.futureValue
21
result shouldBe a[TimeoutException]
22
result.getMessage shouldBe "Lazy timeout"
23
}
0 commit comments