Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We are using Behat and the drupalextension extensively on Commerce Kickstart 2.x and Panopoly. However, randomly we get the following issue #2231631: Tests randomly fail with "MySQL server has gone away" (take 4). It happens after all the Behat tests has run. Have you experienced this issue?
Comments
Comment #1
jhedstromI didn't experience that exact issue, but I have run into issues with modules that register shutdown functions. Since a Behat run can cover many many 'page loads' (as Drupal modules are typically thinking), by the time the shutdown functions are actually called, much of the underlying data (such as node objects) no longer exist. This code removes shutdown functions:
Also available here: https://gist.github.com/jhedstrom/0c06cf2caca1cac0b517
Comment #2
lsolesen CreditAttribution: lsolesen commentedThat did not solve the issue: https://travis-ci.org/lsolesen/commerce_kickstart/jobs/24240109#L811
Comment #3
jhedstromDid you folks ever figure this one out?
Comment #4
eliza411 CreditAttribution: eliza411 commentedLooks like this has been figured out: #2231631