Skip to content

Commit

Permalink
Call convertToFuture method directly
Browse files Browse the repository at this point in the history
  • Loading branch information
wydra98 committed Jun 30, 2023
1 parent 94fcc20 commit 1648986
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ class ArmeriaZioHttpTest extends HttpTest[Task] with ZioTestBase {
case _ => ZIO.succeed("No defects occurred during the operation")
}

resultTask.toFuture().map(_ => succeed)
convertToFuture.toFuture(resultTask).map(_ => succeed)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ class ArmeriaZioHttpTest extends HttpTest[Task] with ZioTestBase {
case _ => ZIO.succeed("No defects occurred during the operation")
}

resultTask.toFuture().map(_ => succeed)
convertToFuture.toFuture(resultTask).map(_ => succeed)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ class AsyncHttpClientZioHttpTest extends HttpTest[Task] with ZioTestBase {
case _ => ZIO.succeed("No defects occurred during the operation")
}

resultTask.toFuture().map(_ => succeed)
convertToFuture.toFuture(resultTask).map(_ => succeed)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ class AsyncHttpClientZioHttpTest extends HttpTest[Task] with ZioTestBase {
case _ => ZIO.succeed("No defects occurred during the operation")
}

resultTask.toFuture().map(_ => succeed)
convertToFuture.toFuture(resultTask).map(_ => succeed)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ class HttpClientZioHttpTest extends HttpTest[Task] with ZioTestBase {
case _ => ZIO.succeed("No defects occurred during the operation")
}

resultTask.toFuture().map(_ => succeed)
convertToFuture.toFuture(resultTask).map(_ => succeed)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ class HttpClientZioHttpTest extends HttpTest[Task] with ZioTestBase {
case _ => ZIO.succeed("No defects occurred during the operation")
}

resultTask.toFuture().map(_ => succeed)
convertToFuture.toFuture(resultTask).map(_ => succeed)
}
}

0 comments on commit 1648986

Please sign in to comment.