mirror of
https://github.com/progval/irctest.git
synced 2025-04-04 22:39:50 +00:00
echo-message: Check server-time more accurately, and handle slight timing differences due to late application
This commit is contained in:
@ -67,10 +67,8 @@ class EchoMessageTestCase(cases.BaseServerTestCase):
|
||||
'messages differ: {} {}',
|
||||
extra_format=(m1, m2))
|
||||
if server_time:
|
||||
self.assertEqual(m1.tags, m2.tags,
|
||||
fail_msg='Tags of forwarded and echoed '
|
||||
'messages differ: {} {}',
|
||||
extra_format=(m1, m2))
|
||||
self.assertIn('time', m1.tags, fail_msg='Echoed message is missing server time: {}', extra_format=(m1,))
|
||||
self.assertIn('time', m2.tags, fail_msg='Forwarded message is missing server time: {}', extra_format=(m2,))
|
||||
return f
|
||||
|
||||
testEchoMessagePrivmsgNoServerTime = _testEchoMessage('PRIVMSG', False, False)
|
||||
|
Reference in New Issue
Block a user