Make test_time_handler run faster
darcs-hash:20061102183742-86b55-044c2a6b9d511b8d479e8028330e898b945608e5.gz
This commit is contained in:
@@ -121,7 +121,6 @@ class JCLComponent_TestCase(unittest.TestCase):
|
|||||||
"localhost",
|
"localhost",
|
||||||
"5347",
|
"5347",
|
||||||
'sqlite://' + DB_URL)
|
'sqlite://' + DB_URL)
|
||||||
self.comp.account_class = Account
|
|
||||||
self.max_tick_count = 2
|
self.max_tick_count = 2
|
||||||
self.saved_time_handler = None
|
self.saved_time_handler = None
|
||||||
|
|
||||||
@@ -246,7 +245,7 @@ class JCLComponent_TestCase(unittest.TestCase):
|
|||||||
|
|
||||||
def test_time_handler(self):
|
def test_time_handler(self):
|
||||||
self.comp.time_unit = 1
|
self.comp.time_unit = 1
|
||||||
self.max_tick_count = 2
|
self.max_tick_count = 1
|
||||||
self.comp.handle_tick = self.__handle_tick_test_time_handler
|
self.comp.handle_tick = self.__handle_tick_test_time_handler
|
||||||
self.comp.stream = MockStream()
|
self.comp.stream = MockStream()
|
||||||
self.comp.running = True
|
self.comp.running = True
|
||||||
|
|||||||
Reference in New Issue
Block a user