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