Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some test fixing #200

Merged
merged 3 commits into from
Nov 19, 2024
Merged

some test fixing #200

merged 3 commits into from
Nov 19, 2024

Conversation

seba-aln
Copy link
Contributor

@seba-aln seba-aln commented Nov 8, 2024

No description provided.

@seba-aln seba-aln marked this pull request as ready for review November 8, 2024 11:33
@pytest.mark.asyncio
async def test_publish_mixed_via_post(event_loop):
pubnub = PubNubAsyncio(pnconf_copy(), custom_event_loop=event_loop)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between pnconf_copy and pnconf_env_copy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pnconf_env* uses keyset from environmental variables instead of those hardcoded. I'm slowly cleaning up what was in the repo for a while now

timeout=aiohttp.ClientTimeout(connect=self.config.connect_timeout),
connector=self._connector
)
if not self._session:
Copy link

@jguz-pubnub jguz-pubnub Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it mean you will create a new session from now on if it's not presented before? What's the reason behind it? I mean why you had to change it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some time ago I made this mistake of not having a single session connection, so this is the attempt to fix it

@jguz-pubnub jguz-pubnub self-requested a review November 19, 2024 11:42
@seba-aln seba-aln merged commit dc1a8e8 into master Nov 19, 2024
9 checks passed
@seba-aln seba-aln deleted the fix/fix-flaky-test branch November 19, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants