Content-Length: 1026 | pFad | http://github.com/interactions-py/interactions.py/pull/1650.patch
thub.com
From fead16f8afc615e1f99a8b7ea9949f9589227745 Mon Sep 17 00:00:00 2001
From: Katelyn Gigante
Date: Mon, 1 Apr 2024 00:12:06 +1100
Subject: [PATCH] ci: Further measures to prevent collisions when running
multiple copies of the test suit simultaneously
---
tests/test_bot.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_bot.py b/tests/test_bot.py
index 9e2f8c7c6..c780408ba 100644
--- a/tests/test_bot.py
+++ b/tests/test_bot.py
@@ -1,6 +1,7 @@
import asyncio
import logging
import os
+import random
from asyncio import AbstractEventLoop
from contextlib import suppress
from datetime import datetime
@@ -75,7 +76,7 @@ async def bot(github_commit) -> Client:
gw = asyncio.create_task(bot.start_gateway())
await bot._ready.wait()
- bot.suffix = github_commit
+ bot.suffix = github_commit + " - " + hex(random.randint(0, 255))[2:]
log.info(f"Logged in as {bot.user} ({bot.user.id}) -- {bot.suffix}")
yield bot
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/interactions-py/interactions.py/pull/1650.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy