From 9b5b1ffc9579ff715417aa0e9140a70d92c2afee Mon Sep 17 00:00:00 2001 From: Azareal Date: Sun, 13 Oct 2019 18:22:31 +1000 Subject: [PATCH] make this test more reproducible --- parser_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parser_test.go b/parser_test.go index 7cdc8724..07b4fea9 100644 --- a/parser_test.go +++ b/parser_test.go @@ -301,7 +301,9 @@ func TestParser(t *testing.T) { l = &METriList{nil} pre := c.Site.URL // Just in case this is localhost... + pre2 := c.Site.EnableSSl c.Site.URL = "example.com" + c.Site.EnableSsl = true l.Add("//"+c.Site.URL, ""+c.Site.URL+"") l.Add("//"+c.Site.URL+"\n", ""+c.Site.URL+"
") l.Add("//"+c.Site.URL+"\n//"+c.Site.URL, ""+c.Site.URL+"
"+c.Site.URL+"") @@ -317,6 +319,7 @@ func TestParser(t *testing.T) { } } c.Site.URL = pre + c.Site.EnableSsl = pre2 c.AddHashLinkType("nnid-", func(sb *strings.Builder, msg string, i *int) { tid, intLen := c.CoerceIntString(msg[*i:])