rob05c commented on code in PR #6892:
URL: https://github.com/apache/trafficcontrol/pull/6892#discussion_r894535817


##########
lib/go-atscfg/remapdotconfig_test.go:
##########
@@ -2945,11 +2945,11 @@ func TestMakeRemapDotConfigEdgeHeaderRewrite(t 
*testing.T) {
 
        txtLines := strings.Split(txt, "\n")
 
-       if len(txtLines) != 2 {
+       if len(txtLines) != 3 { // comment, blank, and remap
                t.Fatalf("expected 1 remaps from HTTP_TO_HTTPS DS, actual: '%v' 
count %v", txt, len(txtLines))

Review Comment:
   There's only 1 remap, the other 2 lines are a comment and a blank



##########
lib/go-atscfg/remapdotconfig_test.go:
##########
@@ -3073,11 +3073,11 @@ func TestMakeRemapDotConfigEdgeHeaderRewriteEmpty(t 
*testing.T) {
 
        txtLines := strings.Split(txt, "\n")
 
-       if len(txtLines) != 2 {
+       if len(txtLines) != 3 { // comment, blank, and remap
                t.Fatalf("expected 1 remaps from HTTP_TO_HTTPS DS, actual: '%v' 
count %v", txt, len(txtLines))

Review Comment:
   There's only 1 remap, the other 2 lines are a comment and a blank



-- 
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]

Reply via email to