-
Notifications
You must be signed in to change notification settings - Fork 111
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
[RSDK-9149] Fix Logger Test Fails #4723
Conversation
robot/web/options/options.go
Outdated
@@ -73,6 +73,8 @@ type Options struct { | |||
WebRTCOnPeerRemoved func(pc *webrtc.PeerConnection) | |||
|
|||
DisableMulticastDNS bool | |||
|
|||
WaitForHandlers bool |
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.
add a comment explaining what this comment does
This reverts commit 9d3ea91.
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.
I completely removed the two failing test bc it didn't seem right to assign a seemingly arbitrary number as the expected number of logs. Plus, the number varies by platform. So, I think it's better for the tests to not be included to say that we do now expect some number of error logs here.
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.
I don't have an opinion here, I'm fine with these changes.
I defer to @cheukt
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.
LGTM, removals seem fine
This pull request is causing some RDK tests to fail due to a) unexpected - unexpected by the tests, expected by us - log messages showing up and b) a data race (likely due to a message being logged in a go routine caused by a test that has already completed/returned). This PR fixes those failures by allowing for the graceful stopping of the web servers used in the tests that are failing.