Skip to content

Commit 1570c6e

Browse files
committed
Fix issue with unawaited coroutine in test
1 parent 2ca0248 commit 1570c6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/bot/exts/moderation/test_slowmode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def test_callback_scheduled(self, mock_datetime, ):
132132
"""Schedule slowmode to be reverted"""
133133
mock_now = datetime.datetime(2025, 6, 2, 12, 0, 0, tzinfo=datetime.UTC)
134134
mock_datetime.now.return_value = mock_now
135-
self.cog.scheduler=mock.MagicMock()
135+
self.cog.scheduler=mock.MagicMock(wraps=self.cog.scheduler)
136136

137137
text_channel = MockTextChannel(name="python-general", slowmode_delay=2, id=123)
138138
await self.cog.set_slowmode(

0 commit comments

Comments
 (0)