File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
core/src/test/scala/com/avast/clients/rabbitmq Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class IOOps[A](t: IO[A]) {
4545
4646class ResourceIOOps [A ](val r : Resource [IO , A ]) extends AnyVal {
4747 def withResource [B ](f : A => B ): B = {
48- withResource(f, Duration . Inf )
48+ withResource(f, 10 .minutes )
4949 }
5050
5151 def withResource [B ](f : A => B , timeout : Duration ): B = {
@@ -55,7 +55,7 @@ class ResourceIOOps[A](val r: Resource[IO, A]) extends AnyVal {
5555
5656class ResourceTaskOps [A ](val r : Resource [Task , A ]) extends AnyVal {
5757 def withResource [B ](f : A => B ): B = {
58- withResource(f, Duration . Inf )
58+ withResource(f, 10 .minutes )
5959 }
6060
6161 def withResource [B ](f : A => B , timeout : Duration ): B = {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class TaskOps[A](t: Task[A]) {
3636
3737class ResourceIOOps [A ](val r : Resource [IO , A ]) extends AnyVal {
3838 def withResource [B ](f : A => B ): B = {
39- withResource(f, Duration . Inf )
39+ withResource(f, 10 .minutes )
4040 }
4141
4242 def withResource [B ](f : A => B , timeout : Duration ): B = {
@@ -46,7 +46,7 @@ class ResourceIOOps[A](val r: Resource[IO, A]) extends AnyVal {
4646
4747class ResourceTaskOps [A ](val r : Resource [Task , A ]) extends AnyVal {
4848 def withResource [B ](f : A => B ): B = {
49- withResource(f, Duration . Inf )
49+ withResource(f, 10 .minutes )
5050 }
5151
5252 def withResource [B ](f : A => B , timeout : Duration ): B = {
You can’t perform that action at this time.
0 commit comments