From d919653c2b38a3afb74d28e5462685f7ec54b16a Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 19 Dec 2023 12:46:57 -0800 Subject: [PATCH] Make a test fail --- patches/server/1051-Make-a-test-fail.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 patches/server/1051-Make-a-test-fail.patch diff --git a/patches/server/1051-Make-a-test-fail.patch b/patches/server/1051-Make-a-test-fail.patch new file mode 100644 index 0000000000..e10e9882c2 --- /dev/null +++ b/patches/server/1051-Make-a-test-fail.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> +Date: Tue, 19 Dec 2023 12:46:26 -0800 +Subject: [PATCH] Make a test fail + + +diff --git a/src/test/java/io/papermc/paper/adventure/AdventureCodecsTest.java b/src/test/java/io/papermc/paper/adventure/AdventureCodecsTest.java +index af4b7704ab4690138e3188a45d41b890369f6237..6e70390916a2666bd27a724bf1e571de2d332af6 100644 +--- a/src/test/java/io/papermc/paper/adventure/AdventureCodecsTest.java ++++ b/src/test/java/io/papermc/paper/adventure/AdventureCodecsTest.java +@@ -71,7 +71,7 @@ class AdventureCodecsTest extends AbstractTestingBase { + final Tag result = TEXT_COLOR_CODEC.encodeStart(NbtOps.INSTANCE, color).result().orElseThrow(); + assertEquals(color.asHexString(), result.getAsString()); + final net.minecraft.network.chat.TextColor nms = net.minecraft.network.chat.TextColor.CODEC.decode(NbtOps.INSTANCE, result).result().orElseThrow().getFirst(); +- assertEquals(color.value(), nms.getValue()); ++ assertEquals(color.value() + 1, nms.getValue()); + } + + @Test