tripal / TripalTestSuite

Handle drupal bootstrapping, load environment variables, and easily wrap your tests in DB transactions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

running out of memory with silent

bradfordcondon opened this issue · comments

Silent is only for testing shorter strings. Wrapping several importers causes memory to run out!

PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 12288 bytes) in /Users/chet/UTK/tripal/includes/database/database.inc on line 2227
#0  StatonLab\TripalTestSuite\TripalTestBootstrap::shutdownHandler()

Solution:

  • add statement to readme that silent is only for testing smalelr strings
  • improve mem management?

I'll take mem management route and put the buffer into a temporary file and remove the file when the test is done

Fixed and documented in #82

Note, I opted to allow the user to specify the buffer size using PHP's ini file (or using set_ini)