diff --git a/zio-schema-protobuf/shared/src/test/scala-2/zio/schema/codec/ProtobufCodecSpec.scala b/zio-schema-protobuf/shared/src/test/scala-2/zio/schema/codec/ProtobufCodecSpec.scala index 8b47ee1ba..86cf194b6 100644 --- a/zio-schema-protobuf/shared/src/test/scala-2/zio/schema/codec/ProtobufCodecSpec.scala +++ b/zio-schema-protobuf/shared/src/test/scala-2/zio/schema/codec/ProtobufCodecSpec.scala @@ -661,9 +661,9 @@ object ProtobufCodecSpec extends ZIOSpecDefault { suite("Should fail to decode")( test("unknown wire types") { for { - d <- decode(Record.schemaRecord, "0F") + d <- decode(Record.schemaRecord, "0F").exit //d2 <- decodeNS(Record.schemaRecord, "0F").exit - } yield assert(d)(equalTo(Chunk.empty)) //&& + } yield assert(d)(fails(anything)) //&& //assert(d2)(fails(anything)) }, test("invalid field numbers") { @@ -696,6 +696,9 @@ object ProtobufCodecSpec extends ZIOSpecDefault { } ), suite("Should fail to decode2")( + test("unknown wire types") { + assertTrue(fromHex("089601") == Chunk.empty) + }, test("unknown wire types") { assertTrue(fromHex("0F") == Chunk.empty) },