From c940544556aba863fbae8cd056e669c6f19dc2d7 Mon Sep 17 00:00:00 2001 From: Vamshi Maskuri <117595548+varshith257@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:57:43 +0530 Subject: [PATCH] fmt --- zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala b/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala index 6e8450392a..5c49f64d87 100644 --- a/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala +++ b/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala @@ -631,7 +631,9 @@ object ConformanceSpec extends ZIOHttpSpec { for { response <- app.runZIO(Request.get("/test")) } yield { - val xFrameOptionsHeaders = response.headers.toList.filter(_.name == Header.XFrameOptions.name) + val xFrameOptionsHeaders = response.headers.toList.collect { + case h if h.headerName == Header.XFrameOptions.name => h + } assertTrue(xFrameOptionsHeaders.length == 1) } },