From a8006d6a38f29d09d1359e650cb715f7fd3d974e Mon Sep 17 00:00:00 2001 From: Vamshi Maskuri <117595548+varshith257@users.noreply.github.com> Date: Sun, 29 Sep 2024 21:48:03 +0530 Subject: [PATCH] fmt --- zio-http/jvm/src/test/scala/zio/http/ServerSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zio-http/jvm/src/test/scala/zio/http/ServerSpec.scala b/zio-http/jvm/src/test/scala/zio/http/ServerSpec.scala index 74d5e34e71..ae7f38ccde 100644 --- a/zio-http/jvm/src/test/scala/zio/http/ServerSpec.scala +++ b/zio-http/jvm/src/test/scala/zio/http/ServerSpec.scala @@ -524,7 +524,7 @@ object ServerSpec extends RoutesRunnableSpec { val requestWithoutHost = Request.get("/test") - val res = app.deploy.run(requestWithoutHost).map(_.status) + val res = app.deploy.runZIO(requestWithoutHost).map(_.status) assertZIO(res)(equalTo(Status.BadRequest)) } + test("should return 200 OK if Host header is present") { @@ -532,7 +532,7 @@ object ServerSpec extends RoutesRunnableSpec { val app = Routes(route) val requestWithHost = Request.get("/test").addHeader(Header.Host("localhost")) - val res = app.deploy.run(requestWithHost).map(_.status) + val res = app.deploy.runZIO(requestWithHost).map(_.status) assertZIO(res)(equalTo(Status.Ok)) } }