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


##########
lib/go-atscfg/remapdotconfig_test.go:
##########
@@ -3463,11 +3463,11 @@ func TestMakeRemapDotConfigEdgeSigningURISigning(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:
##########
@@ -3586,11 +3586,11 @@ func TestMakeRemapDotConfigEdgeSigningNone(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:
##########
@@ -3709,11 +3709,11 @@ func TestMakeRemapDotConfigEdgeSigningEmpty(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:
##########
@@ -3832,11 +3832,11 @@ func TestMakeRemapDotConfigEdgeSigningWrong(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