diff options
author | 2020-05-15 19:52:26 +0200 | |
---|---|---|
committer | 2020-05-15 19:52:26 +0200 | |
commit | 5a48ed0d60ebc9984cae27b19953b50b52df83d9 (patch) | |
tree | 71e657e0165d2309597ecee77d7953a57f6dade0 /tests | |
parent | Move the re eval timeout to a module constant (diff) |
Change tests to use the new timeout constant
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/cogs/test_snekbox.py | 6 |
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) ) ) |