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

--- Comment #27 from Jonathan Druart <jonathan.dru...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to