--- Comment #27 from Jonathan Druart <> 
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:

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.
Koha-bugs mailing list
website :
git :
bugs :

Reply via email to