• Julien Muchembled's avatar
    testAdvancedInvoicing: remove noop/broken statement · cd39ac48
    Julien Muchembled authored
    Any use of erp5_sql_transactionless_connection must end with an explicit SQL
    commit, otherwise it does nothing and it may even leave SQL locks.
    
    Contrary to InnoDB, TokuDB locks on such statement. test_InvoiceViewAsODT
    is the only test that does not use erp5_sql_transactionless_connection
    (other tests do via IdTool), breaking the next test
    (test_PackingListEditAndInvoiceRule) with "Lock wait timeout exceeded" error.
    
    One would except that the tests use the same instance of
    erp5_sql_transactionless_connection, and in this case it would not fail, but
    for bad reasons, tests alternate between 2 different ZODB Connection instances.
    cd39ac48
testAdvancedInvoicing.py 44.1 KB