aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-05-15 19:52:26 +0200
committerGravatar Numerlor <[email protected]>2020-05-15 19:52:26 +0200
commit5a48ed0d60ebc9984cae27b19953b50b52df83d9 (patch)
tree71e657e0165d2309597ecee77d7953a57f6dade0
parentMove the re eval timeout to a module constant (diff)
Change tests to use the new timeout constant
-rw-r--r--tests/bot/cogs/test_snekbox.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_snekbox.py b/tests/bot/cogs/test_snekbox.py
index 1dec0ccaf..ccc090f02 100644
--- a/tests/bot/cogs/test_snekbox.py
+++ b/tests/bot/cogs/test_snekbox.py
@@ -291,7 +291,11 @@ class SnekboxTests(unittest.IsolatedAsyncioTestCase):
self.assertEqual(actual, expected)
self.bot.wait_for.assert_has_awaits(
(
- call('message_edit', check=partial_mock(snekbox.predicate_eval_message_edit, ctx), timeout=10),
+ call(
+ 'message_edit',
+ check=partial_mock(snekbox.predicate_eval_message_edit, ctx),
+ timeout=snekbox.REEVAL_TIMEOUT,
+ ),
call('reaction_add', check=partial_mock(snekbox.predicate_eval_emoji_reaction, ctx), timeout=10)
)
)