Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
317c3bd1
Commit
317c3bd1
authored
Feb 05, 2020
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testListBox: Make timeout test failures easier to debug.
parent
a43e825d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
product/ERP5Form/tests/testListBox.py
product/ERP5Form/tests/testListBox.py
+4
-3
No files found.
product/ERP5Form/tests/testListBox.py
View file @
317c3bd1
...
@@ -770,8 +770,9 @@ class TestListBox(ERP5TypeTestCase):
...
@@ -770,8 +770,9 @@ class TestListBox(ERP5TypeTestCase):
'ERP5TypeTestCase:'
,
'ERP5TypeTestCase:'
,
)
)
self
.
assertEqual
(
result
.
getStatus
(),
500
)
self
.
assertEqual
(
result
.
getStatus
(),
500
)
self
.
assertTrue
(
'Error Type: TimeoutReachedError'
in
result
.
getBody
())
body
=
result
.
getBody
()
self
.
assertTrue
(
'Error Value: 1969: Query execution was interrupted (max_statement_time exceeded): SET STATEMENT'
in
result
.
getBody
())
self
.
assertIn
(
'Error Type: TimeoutReachedError'
,
body
)
self
.
assertIn
(
'Error Value: 1969: Query execution was interrupted (max_statement_time exceeded): SET STATEMENT'
,
body
)
def
test_zodb_timeout
(
self
):
def
test_zodb_timeout
(
self
):
portal
=
self
.
getPortal
()
portal
=
self
.
getPortal
()
...
@@ -808,7 +809,7 @@ return context.objectValues()
...
@@ -808,7 +809,7 @@ return context.objectValues()
'ERP5TypeTestCase:'
,
'ERP5TypeTestCase:'
,
)
)
self
.
assertEqual
(
result
.
getStatus
(),
500
)
self
.
assertEqual
(
result
.
getStatus
(),
500
)
self
.
assert
True
(
'Error Type: TimeoutReachedError'
in
result
.
getBody
())
self
.
assert
In
(
'Error Type: TimeoutReachedError'
,
result
.
getBody
())
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
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