|
From: | Arnaud Aujon Chevallier |
Subject: | [Dolibarr-dev] database lock in tests |
Date: | Wed, 27 May 2015 15:50:17 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
Hi, I'm trying to write some tests for new api methods I added (createInvoice...). I created a new Test class WebservicesInvoicesTest that creates a new societe and then calls createInvoice, my problem is the database seems to be locked when trying to actually save the invoice (inside create method of Facture.class). "show processlist" query shows :
After 30 seconds the api call timeout. Do you have an idea of what can happen here ? If a manually kill the first query, everything works fine. Does Dolibarr lock the databse to avoid parallel queries or something like that ? The code is available here : https://github.com/aaujon/dolibarr/tree/3.7-webservices-fix Thanks a lot ! |
[Prev in Thread] | Current Thread | [Next in Thread] |