From 3d22687a943bb03e72861c5de97151ea1acbdc9a Mon Sep 17 00:00:00 2001 From: asr2003 <162500856+asr2003@users.noreply.github.com> Date: Wed, 11 Sep 2024 00:29:24 +0530 Subject: [PATCH] Update BodySpec.scala --- zio-http/jvm/src/test/scala/zio/http/BodySpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)