Commit 14ab1972 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use a real TID in test.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1461 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 57a219d6
...@@ -108,7 +108,7 @@ class NeoTestBase(unittest.TestCase): ...@@ -108,7 +108,7 @@ class NeoTestBase(unittest.TestCase):
def getAdminUUID(self): def getAdminUUID(self):
return self._makeUUID('A') return self._makeUUID('A')
def getNextTID(self, ltid): def getNextTID(self, ltid=None):
tm = time() tm = time()
gmt = gmtime(tm) gmt = gmtime(tm)
upper = ((((gmt.tm_year - 1900) * 12 + gmt.tm_mon - 1) * 31 \ upper = ((((gmt.tm_year - 1900) * 12 + gmt.tm_mon - 1) * 31 \
......
...@@ -818,7 +818,7 @@ class ClientHandlerTests(NeoTestBase): ...@@ -818,7 +818,7 @@ class ClientHandlerTests(NeoTestBase):
dispatcher = self.getDispatcher() dispatcher = self.getDispatcher()
client_handler = StorageAnswersHandler(app) client_handler = StorageAnswersHandler(app)
conn = self.getConnection() conn = self.getConnection()
tid = '\x00\x00\x00\x00\x00\x00\x00\x01' # XXX: use a more realistic tid tid = self.getNextTID()
user = 'bar' user = 'bar'
desc = 'foo' desc = 'foo'
ext = 0 # XXX: unused in implementation ext = 0 # XXX: unused in implementation
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment