mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Limiter: Fix "reduce limit" test case.
Closes: Sf#3058142
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit c0e24cef30
)
Signed-off-by: Daniel Folkinshteyn <nanotube@users.sourceforge.net>
This commit is contained in:
parent
f68b6f709e
commit
219832a0f9
@ -47,7 +47,7 @@ class LimiterTestCase(ChannelPluginTestCase):
|
||||
conf.supybot.plugins.Limiter.maximumExcess.setValue(7)
|
||||
self.irc.feedMsg(ircmsgs.part('#foo', prefix='bar!root@host'))
|
||||
m = self.irc.takeMsg()
|
||||
self.assertEqual(m, ircmsgs.limit('#foo', 1-5))
|
||||
self.assertEqual(m, ircmsgs.limit('#foo', 1+5))
|
||||
finally:
|
||||
conf.supybot.plugins.Limiter.minimumExcess.setValue(origMin)
|
||||
conf.supybot.plugins.Limiter.maximumExcess.setValue(origMax)
|
||||
|
Loading…
Reference in New Issue
Block a user