Skip to content

Conversation

timabrmsn
Copy link
Contributor

This change moves the DataServers into session-scoped fixtures with different ports to prevent intermittent connection problems, since they'll only be setup/torn down once per run.

@github-actions
Copy link

github-actions bot commented Mar 2, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️

Copy link
Contributor

@antazoey antazoey left a comment

Choose a reason for hiding this comment

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

Thanks - I was trying to do this same thing but I think the scope-correction fixtures was the missing key

def test_auditlogs_send_to_command_returns_success_return_code(
runner, integration_test_profile, protocol
def test_auditlogs_send_to_tcp_command_returns_success_return_code(
runner, integration_test_profile, tcp_dataserver
Copy link
Contributor

Choose a reason for hiding this comment

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

Do actually need to pass this in or will it work without it?

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it should work without passing them in as fixture params

Copy link
Contributor

Choose a reason for hiding this comment

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

The tcp_dataserver and udp_dataserver fixtures are what I am referring to

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If no tests use the fixture, it won't get set up unless we set autouse=True on it. Which we don't want, since we only want it to get set up on integration tests.

@timabrmsn timabrmsn merged commit 4ecf945 into master Mar 2, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2021
@antazoey antazoey deleted the bugfix/fix_integration_send_to_tests branch April 21, 2021 13:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants