Skip to content

Commit 0f49eb4

Browse files
committed
Relax open file descriptor assertion in stress test
Allow number of open file descriptors to grow at most 50% instead of 30%. Lower value results in this test build flaky when executed as part of the build. Long running dedicated build shows no indications of leaks as well as local runs.
1 parent f8d96a0 commit 0f49eb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ private void assertNoFileDescriptorLeak( long previousOpenFileDescriptors )
307307
{
308308
System.out.println( "Initially open file descriptors: " + previousOpenFileDescriptors );
309309

310-
// number of open file descriptors should not go up for more than 30%
311-
long maxOpenFileDescriptors = (long) (previousOpenFileDescriptors * 1.3);
310+
// number of open file descriptors should not go up for more than 50%
311+
long maxOpenFileDescriptors = (long) (previousOpenFileDescriptors * 1.5);
312312
long currentOpenFileDescriptorCount = getOpenFileDescriptorCount();
313313
System.out.println( "Currently open file descriptors: " + currentOpenFileDescriptorCount );
314314

0 commit comments

Comments
 (0)