Skip to content

Commit

Permalink
Debug...
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Jan 8, 2025
1 parent f2d76aa commit 63e3cf1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/acceptance/subscribe/environment.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import asyncio
import requests
import logging

from behave.runner import Context
from io import StringIO
from httpx import HTTPError
from pubnub.pubnub import PubNub
from pubnub.pnconfiguration import PNConfiguration
from pubnub.pubnub_asyncio import SubscribeCallback
Expand Down Expand Up @@ -51,6 +53,10 @@ def after_scenario(context: Context, feature):
loop.run_until_complete(task)
except asyncio.CancelledError:
pass
except HTTPError as e:
logger = logging.getLogger("pubnub")
logger.error(f"HTTPError: {e}")

loop.run_until_complete(asyncio.sleep(1.5))
del context.pubnub

Expand Down

0 comments on commit 63e3cf1

Please sign in to comment.