Skip to content

Commit 4b4ad7f

Browse files
authored
ci: Further measures to prevent collisions when running multiple copies of the test suit simultaneously (#1650)
1 parent 117c462 commit 4b4ad7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import asyncio
22
import logging
33
import os
4+
import random
45
from asyncio import AbstractEventLoop
56
from contextlib import suppress
67
from datetime import datetime, timedelta
@@ -77,7 +78,7 @@ async def bot(github_commit) -> Client:
7778
gw = asyncio.create_task(bot.start_gateway())
7879

7980
await bot._ready.wait()
80-
bot.suffix = github_commit
81+
bot.suffix = github_commit + " - " + hex(random.randint(0, 255))[2:]
8182
log.info(f"Logged in as {bot.user} ({bot.user.id}) -- {bot.suffix}")
8283

8384
yield bot

0 commit comments

Comments
 (0)