neo4j / docker-neo4j

Docker Images for the Neo4j Graph Database
Apache License 2.0
320 stars 168 forks source link

improved test memory usage and cleanup #421

Closed jennyowen closed 1 year ago

jennyowen commented 1 year ago

Since starting a new neo4j installation will pre-allocate 500MB for transaction logs, running the whole docker test suite can take up a LOT of memory with just empty space. This is causing frequent test failures. This change should improve test clean up so that after each test class completes, it will compress any mounted folders into a tar.gz then delete the original mounted folder. This frees the pre-allocated memory and saves memory.