Iterables.count( node.getRelationships() );
}
}
private void tryOnce( final GraphDatabaseAPI db, final Node node ) throws Throwable
{
<BUG>Race race = new Race( true );
race.addContestants( Runtime.getRuntime().availableProcessors(), () -> {</BUG>
try ( Transaction ignored = db.beginTx() )
{
assertEquals( relCount, count( node.getRelationships() ) );

Iterables.count( node.getRelationships() );
}
}
private void tryOnce( final GraphDatabaseAPI db, final Node node ) throws Throwable
{
Race race = new Race().withRandomStartDelays();
race.addContestants( Runtime.getRuntime().availableProcessors(), () -> {
try ( Transaction ignored = db.beginTx() )
{
assertEquals( relCount, count( node.getRelationships() ) );
