Skip to content

Commit a28194f

Browse files
author
Zhen
committed
Fix the red build due to unreliable tck calling order of Before method
Also simplified tck output
1 parent 732b8ad commit a28194f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

driver/src/test/java/org/neo4j/driver/v1/tck/DriverComplianceIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
* The base class to run all cucumber tests
3333
*/
3434
@RunWith( DriverCucumberAdapter.class )
35-
@CucumberOptions( features = {"target/resources/features"}, strict=true, tags={"~@db", "~@fixed_session_pool"}, format = {"pretty"})
35+
@CucumberOptions( features = {"target/resources/features"}, strict=true, tags={"~@db", "~@fixed_session_pool"},
36+
format = {"default_summary"})
3637
public class DriverComplianceIT
3738
{
3839
@Rule

driver/src/test/java/org/neo4j/driver/v1/tck/Environment.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void resetValues()
6363
statementRunner = null;
6464
stringRunner = null;
6565
runners = new ArrayList<>();
66-
mappedTypes = new HashMap<>( );
66+
mappedTypes = new HashMap<>();
6767
driver = neo4j.driver();
6868
}
6969

@@ -79,6 +79,7 @@ public void closeRunners()
7979
@Before("@reset_database")
8080
public void emptyDatabase()
8181
{
82+
Driver driver = neo4j.driver();
8283
try ( Session session = driver.session())
8384
{
8485
session.run( "MATCH (n) DETACH DELETE n" );

0 commit comments

Comments
 (0)