aboutsummaryrefslogtreecommitdiff
path: root/async-http-client-backend/fs2/src/test/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2HttpTest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'async-http-client-backend/fs2/src/test/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2HttpTest.scala')
-rw-r--r--async-http-client-backend/fs2/src/test/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2HttpTest.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/async-http-client-backend/fs2/src/test/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2HttpTest.scala b/async-http-client-backend/fs2/src/test/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2HttpTest.scala
new file mode 100644
index 0000000..7772c23
--- /dev/null
+++ b/async-http-client-backend/fs2/src/test/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2HttpTest.scala
@@ -0,0 +1,15 @@
+package com.softwaremill.sttp.asynchttpclient.fs2
+
+import cats.effect.IO
+import com.softwaremill.sttp.SttpBackend
+import com.softwaremill.sttp.testing.{ConvertToFuture, HttpTest}
+
+import scala.concurrent.Future
+
+class AsyncHttpClientFs2HttpTest extends HttpTest[IO] {
+
+ override implicit val backend: SttpBackend[IO, Nothing] = AsyncHttpClientFs2Backend()
+ override implicit val convertToFuture: ConvertToFuture[IO] = new ConvertToFuture[IO] {
+ override def toFuture[T](value: IO[T]): Future[T] = value.unsafeToFuture()
+ }
+}