diff options
author | Jason Penilla <[email protected]> | 2024-04-27 18:25:15 -0700 |
---|---|---|
committer | Jason Penilla <[email protected]> | 2024-04-27 18:25:15 -0700 |
commit | f187fd696aa2bec774b1199b2e3c6937dd12937f (patch) | |
tree | 39458c06fcea04e2ad024546a80087f4177eccbd | |
parent | d93c6f91f7d5647ca347e5d434ebb702cc0e8e0c (diff) | |
download | Paper-f187fd696aa2bec774b1199b2e3c6937dd12937f.tar.gz Paper-f187fd696aa2bec774b1199b2e3c6937dd12937f.zip |
Only scan `org.bukkit.craftbukkit.inventory` in `MetaHandledTagsTest`
fixes tests OOMing
-rw-r--r-- | patches/server/1044-improve-checking-handled-tags-in-itemmeta.patch | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/patches/server/1044-improve-checking-handled-tags-in-itemmeta.patch b/patches/server/1044-improve-checking-handled-tags-in-itemmeta.patch index ef70a5d88f..f946a3afd5 100644 --- a/patches/server/1044-improve-checking-handled-tags-in-itemmeta.patch +++ b/patches/server/1044-improve-checking-handled-tags-in-itemmeta.patch @@ -729,10 +729,10 @@ index 100e9b72b1dac2deb956753b9a8097ba917236fa..0b11d5ea89539decd2f6c60c5b581bbd @Test diff --git a/src/test/java/org/bukkit/craftbukkit/inventory/MetaHandledTagsTest.java b/src/test/java/org/bukkit/craftbukkit/inventory/MetaHandledTagsTest.java new file mode 100644 -index 0000000000000000000000000000000000000000..7dc898d1d383aef8a913059e4f5695b5cdc719de +index 0000000000000000000000000000000000000000..d9692972e3ad089885d43711b6a7fb3e96da59b1 --- /dev/null +++ b/src/test/java/org/bukkit/craftbukkit/inventory/MetaHandledTagsTest.java -@@ -0,0 +1,30 @@ +@@ -0,0 +1,32 @@ +package org.bukkit.craftbukkit.inventory; + +import io.github.classgraph.ClassGraph; @@ -750,7 +750,9 @@ index 0000000000000000000000000000000000000000..7dc898d1d383aef8a913059e4f5695b5 + + @Test + public void checkAllMetasHaveHandledTags() { -+ try (final ScanResult result = new ClassGraph().enableAllInfo().scan()) { ++ try (final ScanResult result = new ClassGraph() ++ .whitelistPackages("org.bukkit.craftbukkit.inventory") ++ .enableAllInfo().scan()) { + final ClassInfoList subclasses = result.getSubclasses(CraftMetaItem.class.getName()); + assertFalse(subclasses.isEmpty(), "found 0 sub types"); + for (final ClassInfo subclass : subclasses) { |