]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] temporarily disable part of test
authorJelte Jansen <jelte@isc.org>
Mon, 13 Feb 2012 19:12:31 +0000 (20:12 +0100)
committerJelte Jansen <jelte@isc.org>
Mon, 13 Feb 2012 19:12:31 +0000 (20:12 +0100)
see ticket #1668

src/bin/stats/tests/b10-stats_test.py

index a50616029a651f0faefca4de97ddeaf65140e7da..d9f8d37a14d6e25f17c0e540a04846f51693b002 100644 (file)
@@ -202,15 +202,20 @@ class TestStats(unittest.TestCase):
         self.assertEqual(send_command("status", "Stats"),
                 (0, "Stats is up. (PID " + str(os.getpid()) + ")"))
         self.assertTrue(self.stats.running)
+        # Due to a race-condition related to the threads used in these
+        # tests, use of the mock session and the stopped check (see
+        # below), are temporarily disabled
+        # See ticket #1668
         # Override moduleCCSession so we can check if send_stopping is called
-        self.stats.mccs = MockModuleCCSession()
+        #self.stats.mccs = MockModuleCCSession()
         self.assertEqual(send_shutdown("Stats"), (0, None))
         self.assertFalse(self.stats.running)
         # Call server.shutdown with argument True so the thread.join() call
         # blocks and we are sure the main loop has finished (and set
         # mccs.stopped)
         self.stats_server.shutdown(True)
-        self.assertTrue(self.stats.mccs.stopped)
+        # Also temporarily disabled for #1668, see above
+        #self.assertTrue(self.stats.mccs.stopped)
 
         # start with err
         self.stats = stats.Stats()