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
Fixes Background Process Leaking Bug #35
Conversation
Signed-off-by: Ken Sipe <kensipe@gmail.com>
bgs = append(bgs, bg) | ||
} else { | ||
logger.Log(stderr.String()) | ||
logger.Log(stdout.String()) |
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.
no logging if background
|
||
logger.Log(stderr.String()) | ||
logger.Log(stdout.String()) | ||
if bg != nil { |
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.
always add bg (this was the main bug)
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.
Please add a test for the bug fix.
@@ -393,6 +402,16 @@ func (h *Harness) Stop() { | |||
} | |||
} | |||
|
|||
if h.bgProcesses != nil { |
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.
Fun fact, I've asked for a test for this case in the original #23 PR where this bug was introduced ;)
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.
@zen-dog definitely! added!
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com> Update pkg/test/harness.go Co-Authored-By: Aleksey Dukhovniy <adukhovniy@mesosphere.io> adding quotes to the logs Signed-off-by: Ken Sipe <kensipe@gmail.com>
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.
🚢
Fixes #33
Signed-off-by: Ken Sipe kensipe@gmail.com