From 6429a00a9a5c9c4e22c008c423dcebf8807501d2 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 29 Sep 2003 04:42:15 +0000 Subject: [PATCH] Made sure to reset the debug file descriptors; fixed logfilesize test. --- test/test.py | 1 + test/test_MiscCommands.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test.py b/test/test.py index 9720e5545..a9a8dccc2 100755 --- a/test/test.py +++ b/test/test.py @@ -117,6 +117,7 @@ class PluginTestCase(unittest.TestCase): os.remove(os.path.join(conf.confDir, filename)) for filename in os.listdir(conf.dataDir): os.remove(os.path.join(conf.dataDir, filename)) + debug.reset() ircdb.users.reload() ircdb.channels.reload() if not self.plugins: diff --git a/test/test_MiscCommands.py b/test/test_MiscCommands.py index 8a0378b9a..325174f90 100644 --- a/test/test_MiscCommands.py +++ b/test/test_MiscCommands.py @@ -32,7 +32,8 @@ from test import * class MiscCommandsTestCase(ChannelPluginTestCase, PluginDocumentation): - plugins = ('MiscCommands', 'Utilities', 'ChannelDB', 'Ctcp') + plugins = ('MiscCommands', 'OwnerCommands', + 'Utilities', 'ChannelDB', 'Ctcp') def testReplyWhenNotCommand(self): try: conf.replyWhenNotCommand = True @@ -92,6 +93,9 @@ class MiscCommandsTestCase(ChannelPluginTestCase, PluginDocumentation): self.assertNotError('source') def testLogfilesize(self): + self.feedMsg('foo bar baz') + self.feedMsg('bar baz quux') + self.assertNotError('upkeep') self.assertNotError('logfilesize') def testGetprefixchar(self):