mirror of
https://github.com/progval/irctest.git
synced 2025-04-04 14:29:46 +00:00
testLineTooLong: Ensure server processed incoming message before reading from the other client (#288)
This commit is contained in:
@ -140,9 +140,9 @@ class TagsTestCase(cases.BaseServerTestCase):
|
||||
self.joinChannel(1, "#xyz")
|
||||
monsterMessage = "@+clientOnlyTagExample=" + "a" * 4096 + " PRIVMSG #xyz hi!"
|
||||
self.sendLine(1, monsterMessage)
|
||||
self.assertEqual(self.getMessages(2), [], "overflowing message was relayed")
|
||||
replies = self.getMessages(1)
|
||||
self.assertIn(ERR_INPUTTOOLONG, set(reply.command for reply in replies))
|
||||
self.assertEqual(self.getMessages(2), [], "overflowing message was relayed")
|
||||
|
||||
|
||||
class LengthLimitTestCase(cases.BaseServerTestCase):
|
||||
|
Reference in New Issue
Block a user