-
Notifications
You must be signed in to change notification settings - Fork 106
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
Conversation
…shed association for all test cases
test/integration/framework.go
Outdated
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). |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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. |
No description provided.