[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
Fri Apr 13 09:49:40 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18725

--- Comment #28 from Marcel de Rooy <m.de.rooy at 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.


More information about the Koha-bugs mailing list