Commit 19b611da authored by Vincent Pelletier's avatar Vincent Pelletier

Fix tests for r2559.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2560 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b5d78d1d
...@@ -36,7 +36,7 @@ class DispatcherTests(NeoTestBase): ...@@ -36,7 +36,7 @@ class DispatcherTests(NeoTestBase):
self.assertTrue(queue.empty()) self.assertTrue(queue.empty())
self.assertTrue(self.dispatcher.dispatch(conn, 1, MARKER)) self.assertTrue(self.dispatcher.dispatch(conn, 1, MARKER))
self.assertFalse(queue.empty()) self.assertFalse(queue.empty())
self.assertTrue(queue.get(block=False) is MARKER) self.assertEqual(queue.get(block=False), (conn, MARKER))
self.assertTrue(queue.empty()) self.assertTrue(queue.empty())
self.assertFalse(self.dispatcher.dispatch(conn, 2, None)) self.assertFalse(self.dispatcher.dispatch(conn, 2, None))
self.assertEqual(len(self.fake_thread.mockGetNamedCalls('start')), 1) self.assertEqual(len(self.fake_thread.mockGetNamedCalls('start')), 1)
......
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