From 7fe8d27686a25c0823b09400f0a706751166bd74 Mon Sep 17 00:00:00 2001 From: Andrea Barbagallo <66796758+barbax7@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:19:21 +0100 Subject: [PATCH] Correct test for antiflood function --- tests/test_telebot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_telebot.py b/tests/test_telebot.py index 54d3807..06ee681 100644 --- a/tests/test_telebot.py +++ b/tests/test_telebot.py @@ -464,12 +464,12 @@ class TestTeleBot: assert new_msg.message_id def test_antiflood(self): - text = "Flooding" + text = "Testing antiflood function" tb = telebot.TeleBot(TOKEN) i = -1 - for i in range(0,100): + for i in range(0,200): util.antiflood(tb.send_message, CHAT_ID, text) - assert i + assert i == 199 @staticmethod def create_text_message(text):