Skip to content

Commit

Permalink
fix test on TC build for 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
conker84 committed Apr 15, 2021
1 parent 4ffa21a commit 16a3d39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions full/src/test/java/apoc/ttl/TTLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public void setUp() {
@Test
public void testExpireManyNodes() throws Exception {
restartAndRegister(db);
db.executeTransactionally("UNWIND range(1,200000) as range CREATE (:Baz)-[:REL_TEST]->(n:Foo:TTL {id: range, ttl: timestamp() + 100});");
db.executeTransactionally("UNWIND range(1,300000) as range CREATE (n:Bar:TTL {id: range, ttl: timestamp() + 100});");
assertTrue(isNodeCountConsistent(200000, 300000));
db.executeTransactionally("UNWIND range(1,2000) as range CREATE (:Baz)-[:REL_TEST]->(n:Foo:TTL {id: range, ttl: timestamp() + 100});");
db.executeTransactionally("UNWIND range(1,3000) as range CREATE (n:Bar:TTL {id: range, ttl: timestamp() + 100});");
assertTrue(isNodeCountConsistent(2000, 3000));
org.neo4j.test.assertion.Assert.assertEventually(() -> isNodeCountConsistent(0, 0), (value) -> value, 30L, TimeUnit.SECONDS);
}

Expand Down
2 changes: 2 additions & 0 deletions full/src/test/java/apoc/uuid/UUIDMultiDbTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeNotNull;
import static org.junit.Assume.assumeTrue;

public class UUIDMultiDbTest {

Expand All @@ -41,6 +42,7 @@ public static void setupContainer() {
neo4jContainer.start();
}, Exception.class);
assumeNotNull(neo4jContainer);
assumeTrue("Neo4j Instance should be up-and-running", neo4jContainer.isRunning());

driver = GraphDatabase.driver(neo4jContainer.getBoltUrl(), AuthTokens.basic("neo4j", "apoc"));

Expand Down

0 comments on commit 16a3d39

Please sign in to comment.