diff --git a/zio-http/jvm/src/test/scala/zio/http/BodySpec.scala b/zio-http/jvm/src/test/scala/zio/http/BodySpec.scala index 9ace903c27..473f9b289f 100644 --- a/zio-http/jvm/src/test/scala/zio/http/BodySpec.scala +++ b/zio-http/jvm/src/test/scala/zio/http/BodySpec.scala @@ -71,7 +71,7 @@ object BodySpec extends ZIOHttpSpec { boundaryOpt = body.contentType.flatMap(_.boundary) _ <- ZIO.logInfo(s"Generated boundary: ${boundaryOpt.getOrElse("No boundary found")}") } yield assertTrue(boundaryOpt.isDefined) && - assertTrue(boundaryOpt.get.matches("^[a-zA-Z0-9'()+_,-./:=?]+$")) + assertTrue(boundaryOpt.get.toString.matches("^[a-zA-Z0-9'()+_,-./:=?]+$")) }, ), ) @@ timeout(10 seconds)