rob05c commented on code in PR #6892:
URL: https://github.com/apache/trafficcontrol/pull/6892#discussion_r894620870
##########
lib/go-atscfg/storagedotconfig_test.go:
##########
@@ -154,7 +154,7 @@ func TestMakeStorageDotConfigNoDriveLetters(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 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:
Changed
##########
lib/go-atscfg/storagedotconfig_test.go:
##########
@@ -197,7 +197,7 @@ func TestMakeStorageDotConfigSomeDriveLetters(t *testing.T)
{
testComment(t, txt, hdr)
- if count := strings.Count(txt, "\n"); count != 6 { // comment plus each
letter
+ if count := strings.Count(txt, "\n"); count != 7 { // comment plus
blank plus each letter
t.Errorf("expected one line for comment, plus one line for each
drive letter, actual: '"+txt+"' count %v", count)
Review Comment:
Changed
--
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]