Merge pull request #1 from DanielOaks/fix-kill

Send QUIT before kill, because after kill we may not be able to send msgs
This commit is contained in:
Valentin Lorentz 2015-12-20 01:22:46 +01:00
commit b7d6ac6a62

View File

@ -44,8 +44,8 @@ class BaseClientTestCase(_IrcTestCase):
self.controller = self.controllerClass()
self._setUpServer()
def tearDown(self):
self.controller.kill()
self.conn.sendall(b'QUIT :end of test.')
self.controller.kill()
self.conn_file.close()
self.conn.close()
self.server.close()