https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18725 --- Comment #28 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Jonathan Druart from comment #27)
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...
I tried a few things too but without the desired result. Will remove the tests but add a follow-up with the make dirty approach in order to overcome the erroneous 'processing' status change. -- You are receiving this mail because: You are watching all bug changes.