rob05c commented on code in PR #6892:
URL: https://github.com/apache/trafficcontrol/pull/6892#discussion_r895912664
##########
lib/go-atscfg/remapdotconfig_test.go:
##########
@@ -2085,15 +2085,15 @@ func TestMakeRemapDotConfigEdgeHostRegexReplacement(t
*testing.T) {
txtLines := strings.Split(txt, "\n")
- if len(txtLines) != 3 {
+ if len(txtLines) != 4 {
t.Fatalf("expected 3 remaps from HTTP_AND_HTTPS DS, actual:
'%v' count %v", txt, len(txtLines))
Review Comment:
So the potential confusion is that it could output 2 remap lines and fail
for other reasons? Would changing the error message to `t.Fatalf("expected a
comment header line, a blank line, and 2 remaps from HTTP_AND_HTTPS DS,
actual:` address the concern?
--
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]