This bug is related to bug 11891 which was recently pushed to master. The issue is that the followup "Bug 11891: (follow-up) remove custom storage class" ( commit id 967f5cb51321a6a08176c7718a6ab933b3b5f926 ) removes the custom storage class that stopped DBIx::Class from destroying the dbh handle when it was done using it.
Created attachment 29190 [details] [review] Bug 12472 - Unit Tests failing with "MySQL server has gone away" This bug is related to bug 11891 which was recently pushed to master. The issue is that the followup "Bug 11891: (follow-up) remove custom storage class" ( commit id 967f5cb51321a6a08176c7718a6ab933b3b5f926 ) removes the custom storage class that stopped DBIx::Class from destroying the dbh handle when it was done using it. Test Plan: 1) Run 'perl t/db_dependent/Circulation.t' 2) Note the error DBD::mysql::st execute failed: MySQL server has gone away at /home/koha/kohaclone/C4/Members.pm line 881. 3) Apply this patch 4) Re-run 'perl t/db_dependent/Circulation.t' 5) No errors!
I don't reproduce the error.
I believe the requirement for a newer version of dbic has made this patch obsolete.