-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
strip \r and \n when reading the file /etc/host_hostname #335
Conversation
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 be great if there was a test to cover this. @nvanheuverzwijn do you have a few minutes to add that?
@michaelshobbs Will do. However, testing this might be difficult because of the hardcoded filename. I will make something up. |
@michaelshobbs Done. Waiting for your feedback. |
t.Fatal(err) | ||
} | ||
done := make(chan string) | ||
addr, sock, srvWG := startServer("tcp", "", done) |
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.
looks like that broke the reconnect test. No need to spin up the server. I'd just move the hostname logic to it's own function and test that specifically.
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.
Hey, I'm sorry, I really don't have time to do this. Maybe someone with more experience in go should do this.
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 worries. I'll take it from here. Thanks for the initial contribution!
Duplicate #338 |
related to #329