Fix test error

This commit is contained in:
Aurora Lahtela 2022-02-27 15:46:17 +02:00
parent 22ebdab821
commit b34a8e8c02

View File

@ -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);