From 2f3623d4303bc698eebc2bfc43e7cda1ad994556 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 8 Dec 2012 12:56:58 -0800 Subject: [PATCH] Fix component tests --- deluge/tests/test_component.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/tests/test_component.py b/deluge/tests/test_component.py index ab5e4d534..816bb9716 100644 --- a/deluge/tests/test_component.py +++ b/deluge/tests/test_component.py @@ -57,6 +57,7 @@ class ComponentTestClass(unittest.TestCase): def on_start(result, c): self.assertEquals(c._component_state, "Started") self.assertEquals(c.start_count, 1) + c._component_timer.stop() c = testcomponent("test_start_c1") d = component.start(["test_start_c1"]) @@ -69,6 +70,8 @@ class ComponentTestClass(unittest.TestCase): self.assertEquals(c2._component_state, "Started") self.assertEquals(c1.start_count, 1) self.assertEquals(c2.start_count, 1) + c1._component_timer.stop() + c2._component_timer.stop() c1 = testcomponent("test_start_depends_c1") c2 = testcomponent("test_start_depends_c2")