From 6ca20c75140fdf1831641a20447f270fa406802b Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sat, 23 Jan 2010 07:26:19 +0000 Subject: [PATCH] Make test coverage happy. 1 second seems to be not enough to create a comment when running the test coverage. svn path=/plone.app.discussion/trunk/; revision=33309 --- plone/app/discussion/tests/test_conversation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/tests/test_conversation.py b/plone/app/discussion/tests/test_conversation.py index c92a3fc..4f6ada0 100644 --- a/plone/app/discussion/tests/test_conversation.py +++ b/plone/app/discussion/tests/test_conversation.py @@ -552,7 +552,7 @@ class ConversationTest(PloneTestCase): # check if the latest comment has been updated # the latest comment should be exactly four days old self.assert_(conversation.last_comment_date < datetime.now() - timedelta(days=3, hours=23, minutes=59, seconds=59)) - self.assert_(conversation.last_comment_date > datetime.now() - timedelta(days=4, seconds=1)) + self.assert_(conversation.last_comment_date > datetime.now() - timedelta(days=4, seconds=2)) def test_get_comments_full(self): pass