diff --git a/core/src/test/scala/sttp/client4/testing/HttpTest.scala b/core/src/test/scala/sttp/client4/testing/HttpTest.scala index 567688c8a..4c24dff7f 100644 --- a/core/src/test/scala/sttp/client4/testing/HttpTest.scala +++ b/core/src/test/scala/sttp/client4/testing/HttpTest.scala @@ -183,7 +183,7 @@ trait HttpTest[F[_]] } .toFuture() .map( - _ shouldBe "sttp.client4.ResponseException.UnexpectedStatusCode: statusCode: 400, response: POST /echo/custom_status/400 this is the body" + _ shouldBe "sttp.client4.ResponseException$UnexpectedStatusCode: statusCode: 400, response: POST /echo/custom_status/400 this is the body" ) } diff --git a/core/src/test/scala/sttp/client4/testing/streaming/StreamingTest.scala b/core/src/test/scala/sttp/client4/testing/streaming/StreamingTest.scala index 8af2228c4..f21b8e0d4 100644 --- a/core/src/test/scala/sttp/client4/testing/streaming/StreamingTest.scala +++ b/core/src/test/scala/sttp/client4/testing/streaming/StreamingTest.scala @@ -286,7 +286,7 @@ abstract class StreamingTest[F[_], S] } .toFuture() .map( - _ shouldBe "sttp.client4.ResponseException.UnexpectedStatusCode: statusCode: 400, response: POST /echo/custom_status/400 streaming test" + _ shouldBe "sttp.client4.ResponseException$UnexpectedStatusCode: statusCode: 400, response: POST /echo/custom_status/400 streaming test" ) }