Skip to content

Commit

Permalink
[drqYtb6r] changed importFolder with the correct one provided by Test…
Browse files Browse the repository at this point in the history
…ContainerUtil
  • Loading branch information
vga91 committed Jul 24, 2023
1 parent dc213be commit b21ead6
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.neo4j.driver.types.Relationship;

import static apoc.util.TestContainerUtil.createEnterpriseDB;
import static apoc.util.TestContainerUtil.importFolder;
import static apoc.util.TestContainerUtil.testCall;
import static apoc.util.TestContainerUtil.testResult;
import static apoc.util.Util.map;
Expand All @@ -41,8 +42,6 @@ public class CypherEnterpriseExtendedTest {
private static final String SET_RETURN_FILE = "set_and_return.cypher";
private static final String MATCH_RETURN_FILE = "match_and_return.cypher";

private static final File importFolder = new File("import");

public static String SET_NODE = """
MATCH (n:Result)-[:REL]->(:Other)
SET n.updated = true
Expand Down Expand Up @@ -89,10 +88,7 @@ private static void createContainerFile(String fileName, String fileContent) {
}

@AfterClass
public static void afterAll() throws IOException {
Stream.of(SET_RETURN_FILE, MATCH_RETURN_FILE)
.forEach(file -> new File(importFolder, file).delete());

public static void afterAll() {
session.close();
neo4jContainer.close();
}
Expand Down

0 comments on commit b21ead6

Please sign in to comment.