Commit fd9a1d78 authored by Grégory Wisniewski's avatar Grégory Wisniewski

AskBeginTransaction packet now contains an optional TID (for import purpose).

Set an identifier on the packet.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1426 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 6b38043b
......@@ -322,10 +322,11 @@ class MasterClientHandlerTests(NeoTestBase):
port = self.client_port)
conn = self.getFakeConnection(client_uuid, self.client_address)
lptid = self.app.pt.getID()
packet = AskBeginTransaction()
self.service.askBeginTransaction(conn, packet)
self.service.askBeginTransaction(conn, packet)
self.service.askBeginTransaction(conn, packet)
packet = Packets.AskBeginTransaction()
packet.setId(0)
self.service.askBeginTransaction(conn, packet, None)
self.service.askBeginTransaction(conn, packet, None)
self.service.askBeginTransaction(conn, packet, None)
self.assertEquals(self.app.nm.getByUUID(client_uuid).getState(),
NodeStates.RUNNING)
self.assertEquals(len(self.app.finishing_transaction_dict.keys()), 3)
......
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