irctest.cases: Send QUIT before kill, because after kill we may not be able to send msgs

This commit is contained in:
Daniel Oaks 2015-12-20 10:17:52 +10:00
parent 8d12f2fedb
commit ac2a36274c

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