Skip to content

Commit e8f8e74

Browse files
committed
Monix extensions - fix test
1 parent 54a8942 commit e8f8e74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/scala/com/avsystem/commons/concurrent/TaskExtensionsTest.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import scala.concurrent.duration._
1414
class TaskExtensionsTest extends AnyFunSuite with Matchers with ScalaCheckDrivenPropertyChecks with ScalaFutures {
1515
import com.avsystem.commons.concurrent.TaskExtensions._
1616

17-
private implicit val scheduler: Scheduler = Scheduler(RunNowEC)
17+
private implicit val scheduler: Scheduler = Scheduler.global
1818

1919
test("lazyTimeout") {
20-
val result = Task.never.lazyTimeout(100.millis, "Lazy timeout").runToFuture.failed.futureValue
20+
val result = Task.never.lazyTimeout(50.millis, "Lazy timeout").runToFuture.failed.futureValue
2121
result shouldBe a[TimeoutException]
2222
result.getMessage shouldBe "Lazy timeout"
2323
}

0 commit comments

Comments
 (0)