-
Notifications
You must be signed in to change notification settings - Fork 555
[Tests] Add missing tests for NWProtocolStack and fix NWParameters tests. #4793
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
[Tests] Add missing tests for NWProtocolStack and fix NWParameters tests. #4793
Conversation
| connectedEvent.Set (); | ||
| void ConnectionStateHandler (NWConnectionState state, NWError error) | ||
| { | ||
| Console.WriteLine ($"State is {state} and error {error}"); |
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.
remove, or comment, debugging output
|
|
||
| void ConnectionStateHandler (NWConnectionState state, NWError error) | ||
| { | ||
| Console.WriteLine ($"State is {state} and error {error}"); |
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.
same
| host = "www.google.com"; | ||
| using (var parameters = NWParameters.CreateUdp ()) | ||
| using (var endpoint = NWEndpoint.Create (host, "80")) | ||
| { |
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.
minor: { on same line as using
|
Build failure ✅ Build succeeded |
| } | ||
| } | ||
|
|
||
| #endif No newline at end of file |
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.
Minor: missing EOL for last line.
|
Build success |
Modifying the stack of the connection does make the tests for NWParameters to fail, since they'll not wait for the connection to be done. I had to modify the NWParamtersTests to isolate them from the changes done in the stack in other fixtures.