diff --git a/infrastructure/kzg/src/test/java/tech/pegasys/teku/kzg/KZGTest.java b/infrastructure/kzg/src/test/java/tech/pegasys/teku/kzg/KZGTest.java index c89cd7aaed6..47a9d36668f 100644 --- a/infrastructure/kzg/src/test/java/tech/pegasys/teku/kzg/KZGTest.java +++ b/infrastructure/kzg/src/test/java/tech/pegasys/teku/kzg/KZGTest.java @@ -55,17 +55,17 @@ public void setUp() { loadTrustedSetup(); } - @AfterAll - public static void cleanUp() { - KZG.freeTrustedSetup(); - } - private static void loadTrustedSetup() { final String trustedSetup = Resources.getResource(TrustedSetups.class, TRUSTED_SETUP_PATH).toExternalForm(); KZG.loadTrustedSetup(trustedSetup); } + @AfterAll + public static void cleanUp() { + KZG.freeTrustedSetup(); + } + @Test public void testKzgLoadSameTrustedSetupTwice_shouldNotThrowException() { loadTrustedSetup();