Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Fontaine
erp5
Commits
0e3e4b17
Commit
0e3e4b17
authored
Apr 11, 2012
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent mariadb lock "Waiting for table metadata lock"
parent
1e2eb3cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
product/ERP5/tests/testIdTool.py
product/ERP5/tests/testIdTool.py
+3
-1
No files found.
product/ERP5/tests/testIdTool.py
View file @
0e3e4b17
...
...
@@ -273,7 +273,9 @@ class TestIdTool(ERP5TypeTestCase):
generator
.
generateNewId
(
id_group
=
'foo_bar'
,
default
=
4
)
self
.
assertEquals
(
generator
.
last_max_id_dict
[
'foo_bar'
].
value
,
4
)
portal
.
IdTool_zDropTable
()
sql_connection
=
self
.
getSQLConnection
()
# make sure to use same connector as IdTool_zDropTable to avoid mariadb :
# "Waiting for table metadata lock"
sql_connection
=
portal
.
erp5_sql_transactionless_connection
query
=
'select last_id from portal_ids where id_group="foo_bar"'
self
.
assertRaises
(
ProgrammingError
,
sql_connection
.
manage_test
,
query
)
generator
.
rebuildSqlTable
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment