mirror of
https://github.com/progval/irctest.git
synced 2025-04-06 07:19:54 +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: {} {}',
|
'messages differ: {} {}',
|
||||||
extra_format=(m1, m2))
|
extra_format=(m1, m2))
|
||||||
if server_time:
|
if server_time:
|
||||||
self.assertEqual(m1.tags, m2.tags,
|
self.assertIn('time', m1.tags, fail_msg='Echoed message is missing server time: {}', extra_format=(m1,))
|
||||||
fail_msg='Tags of forwarded and echoed '
|
self.assertIn('time', m2.tags, fail_msg='Forwarded message is missing server time: {}', extra_format=(m2,))
|
||||||
'messages differ: {} {}',
|
|
||||||
extra_format=(m1, m2))
|
|
||||||
return f
|
return f
|
||||||
|
|
||||||
testEchoMessagePrivmsgNoServerTime = _testEchoMessage('PRIVMSG', False, False)
|
testEchoMessagePrivmsgNoServerTime = _testEchoMessage('PRIVMSG', False, False)
|
||||||
|
Reference in New Issue
Block a user