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()