Flakey test in test_slack_server.py
meetbryce opened this issue · 1 comments
meetbryce commented
==================================== ERRORS ====================================
_________________ ERROR collecting tests/test_slack_server.py __________________
tests/test_slack_server.py:9: in <module>
from ossai.slack_server import handle_slash_command_sandbox
ossai/slack_server.py:[23](https://github.com/meetbryce/open-source-slack-ai/actions/runs/10499326957/job/29086363496?pr=6#step:7:24): in <module>
socket_handler = AsyncSocketModeHandler(async_app, os.environ["SLACK_APP_TOKEN"])
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/slack_bolt/adapter/socket_mode/aiohttp/__init__.py:79: in __init__
self.client = SocketModeClient(
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/slack_sdk/socket_mode/aiohttp/__init__.py:127: in __init__
self.aiohttp_client_session = aiohttp.ClientSession()
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/aiohttp/client.py:296: in __init__
loop = loop or asyncio.get_running_loop()
E RuntimeError: no running event loop
=========================== short test summary info ============================
ERROR tests/test_slack_server.py - RuntimeError: no running event loop
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
============================== 1 error in 11.[26](https://github.com/meetbryce/open-source-slack-ai/actions/runs/10499326957/job/29086363496?pr=6#step:7:27)s ===============================
meetbryce commented
the code above should have resolved this issue. will reopen if it comes back.