fix relaymsg test fail code

This commit is contained in:
Shivaram Lingamneni 2020-12-07 02:25:20 -05:00
parent 8c66157a9e
commit 5aeb297de5

View File

@ -47,7 +47,7 @@ class RelaymsgTestCase(cases.BaseServerTestCase):
self.sendLine('qux', 'RELAYMSG %s smt/discord :hi a third time' % (chname,)) self.sendLine('qux', 'RELAYMSG %s smt/discord :hi a third time' % (chname,))
response = self.getMessages('qux')[0] response = self.getMessages('qux')[0]
self.assertEqual(response.command, 'FAIL') self.assertEqual(response.command, 'FAIL')
self.assertEqual(response.params[:2], ['RELAYMSG', 'NOT_PRIVED']) self.assertEqual(response.params[:2], ['RELAYMSG', 'PRIVS_NEEDED'])
# grant qux chanop, allowing relaymsg # grant qux chanop, allowing relaymsg
self.sendLine('baz', 'MODE %s +o qux' % (chname,)) self.sendLine('baz', 'MODE %s +o qux' % (chname,))