diff --git a/zio-http/src/test/scala/zhttp/http/HttpSpec.scala b/zio-http/src/test/scala/zhttp/http/HttpSpec.scala index b4f5eca502..b3027d0d90 100644 --- a/zio-http/src/test/scala/zhttp/http/HttpSpec.scala +++ b/zio-http/src/test/scala/zhttp/http/HttpSpec.scala @@ -532,5 +532,11 @@ object HttpSpec extends DefaultRunnableSpec with HExitAssertion { assert(http.execute {})(isDie(equalTo(t))) }, ), + suite("merge")( + test("merges error into success") { + val http = Http.fail(1).merge + assert(http.execute {})(isSuccess(equalTo(1))) + }, + ), ) @@ timeout(10 seconds) }