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 ad95c866e3..0f0c3d5fa3 100644 --- a/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala +++ b/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala @@ -630,9 +630,11 @@ object ConformanceSpec extends ZIOHttpSpec { ) for { response <- app.runZIO(Request.get("/test")) - } yield assertTrue( - response.headers.values(Header.XFrameOptions.name).length == 1, - ) + } yield { + val headersList = response.headers.toList + val xFrameOptionsHeaders = headersList.filter(_._1 == Header.XFrameOptions.name) + assertTrue(xFrameOptionsHeaders.length == 1) + } }, ), suite("cache-control")(