ocket8888 commented on code in PR #6892:
URL: https://github.com/apache/trafficcontrol/pull/6892#discussion_r894585240
##########
lib/go-atscfg/storagedotconfig_test.go:
##########
@@ -112,7 +112,7 @@ func TestMakeStorageDotConfigNoParams(t *testing.T) {
testComment(t, txt, hdr)
- if count := strings.Count(txt, "\n"); count != 2 { // comment plus a
blank line
+ if count := strings.Count(txt, "\n"); count != 3 { // comment header
plus its blank plus a blank line
t.Errorf("expected one line for comment, plus one blank line
(it's important to send a blank line, to prevent many callers from returning a
404), actual: '"+txt+"' count %v", count)
Review Comment:
That's not referring to the comment, it's the error message. Currently it
says it expects "one line for the comment and one blank line" but can then
print out exactly that leaving the reader puzzled how that's an error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]