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

Check if PFCP Agent is up by trying to setup association and use established association for all test cases #552

Merged
merged 11 commits into from Mar 10, 2022

Conversation

osinstom
Copy link
Contributor

@osinstom osinstom commented Mar 8, 2022

No description provided.

@osinstom osinstom self-assigned this Mar 8, 2022
ccascone
ccascone previously approved these changes Mar 8, 2022
test/integration/framework.go Outdated Show resolved Hide resolved
func waitForPFCPAgentToStart() error {
return waitForPortOpen("udp", "127.0.0.1", "8805")
// waitForPFCPAgentToStart checks if PFCP Agent is started by trying to create PFCP association.
// It retries every 5.5 seconds (0.5 seconds of interval between tries + 5 seconds that PFCP Client waits for response).
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be useful to allow passing the timeout as a parameter to pfcpClient.SetupAssociation()? A period of 5.5 seconds means that we might be introducing a delay of 5.5 seconds to each test if the first association is sent before the pfcp-agent is ready (which I assume to be likely) -- right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's right. I'll modify the pfcpsim - I think it would be useful.

@osinstom osinstom requested a review from ccascone March 9, 2022 09:59
@osinstom
Copy link
Contributor Author

osinstom commented Mar 9, 2022

Depends on #560. We didn't see that before because integration tests were waiting 5 seconds for the response. Now, they wait only 1 second.

@osinstom osinstom merged commit ed39080 into master Mar 10, 2022
@osinstom osinstom deleted the fix-wait-for-pfcp branch March 10, 2022 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants