[Koha-bugs] [Bug 18725] process_message_queue.pl sends duplicate emails if message_queue is not writable
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Apr 11 19:08:17 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18725
--- Comment #27 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
If the tests is bad I'd prefer not to have them. It let us think the changes
are covered but they are not.
I tried this:
https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_tx_read_only
but it does not work.
$schema->storage->dbh->do(q|SET SESSION tx_read_only='ON'|);
$schema->storage->txn_do(sub {
is( C4::Letters::SendQueuedMessages(), undef, 'Bad store should prevent
handling any messages.' );
$queued_msg->discard_changes; # refresh
is( $queued_msg->status, 'pending', 'Status still pending' );
});
$schema->storage->dbh->do(q|SET SESSION tx_read_only='OFF'|);
If someone wants to try...
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list