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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
40d70b39
Commit
40d70b39
authored
Mar 13, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testRSS: Fix random failures due to SQL creation_date precision.
parent
900b1618
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
product/ERP5/tests/testRSS.py
product/ERP5/tests/testRSS.py
+6
-0
No files found.
product/ERP5/tests/testRSS.py
View file @
40d70b39
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#
#
##############################################################################
##############################################################################
import
time
import
unittest
import
unittest
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
...
@@ -77,6 +78,11 @@ class TestRSS(ERP5TypeTestCase):
...
@@ -77,6 +78,11 @@ class TestRSS(ERP5TypeTestCase):
if
hasattr
(
self
.
portal
.
person_module
,
'two'
):
if
hasattr
(
self
.
portal
.
person_module
,
'two'
):
self
.
portal
.
person_module
.
manage_delObjects
([
'two'
])
self
.
portal
.
person_module
.
manage_delObjects
([
'two'
])
self
.
portal
.
person_module
.
newContent
(
id
=
"one"
,
title
=
"One"
,
description
=
"Person One"
)
self
.
portal
.
person_module
.
newContent
(
id
=
"one"
,
title
=
"One"
,
description
=
"Person One"
)
# We will be sorting persons by creationg date, and SQL sorting will fail
# when documents are created within the same second. So sleep for one
# second to make sorting behave reliably. This should not matter in real
# use, but is a noisy issue in tests.
time
.
sleep
(
1
)
self
.
portal
.
person_module
.
newContent
(
id
=
"two"
,
title
=
"Two"
,
description
=
"Person Two"
)
self
.
portal
.
person_module
.
newContent
(
id
=
"two"
,
title
=
"Two"
,
description
=
"Person Two"
)
self
.
tic
()
self
.
tic
()
...
...
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