Skip to content

Commit f29728b

Browse files
committed
Safe driver closing in the stress test
1 parent 02ce8f0 commit f29728b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

driver/src/test/java/org/neo4j/driver/v1/stress/CausalClusteringStressIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ public void setUp() throws Exception
100100
public void tearDown() throws Exception
101101
{
102102
executor.shutdownNow();
103-
driver.close();
103+
if ( driver != null )
104+
{
105+
driver.close();
106+
}
104107
}
105108

106109
@Test

0 commit comments

Comments
 (0)