From b34a8e8c02c5825b4965ae4f8871ace68572b728 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sun, 27 Feb 2022 15:46:17 +0200 Subject: [PATCH] Fix test error --- .../export/ExportJSErrorRegressionTest.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Plan/common/src/test/java/com/djrapitops/plan/delivery/export/ExportJSErrorRegressionTest.java b/Plan/common/src/test/java/com/djrapitops/plan/delivery/export/ExportJSErrorRegressionTest.java index fc74cf7aa..68b654e66 100644 --- a/Plan/common/src/test/java/com/djrapitops/plan/delivery/export/ExportJSErrorRegressionTest.java +++ b/Plan/common/src/test/java/com/djrapitops/plan/delivery/export/ExportJSErrorRegressionTest.java @@ -66,15 +66,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; @ExtendWith(SeleniumExtension.class) class ExportJSErrorRegressionTest { - public static PluginMockComponent component; static Path tempDir; static Path exportDirectory; - @Container - public static NginxContainer nginx = new NginxContainer<>("nginx:latest") - .withCustomContent(exportDirectory.toFile().getAbsolutePath()) - .waitingFor(new HttpWaitStrategy()); - private static PlanSystem planSystem; - private static ServerUUID serverUUID; static { try { @@ -88,6 +81,15 @@ class ExportJSErrorRegressionTest { } } + public static PluginMockComponent component; + + @Container + public static NginxContainer nginx = new NginxContainer<>("nginx:latest") + .withCustomContent(exportDirectory.toFile().getAbsolutePath()) + .waitingFor(new HttpWaitStrategy()); + private static PlanSystem planSystem; + private static ServerUUID serverUUID; + @BeforeAll static void setUpClass() throws Exception { component = new PluginMockComponent(tempDir);