0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

Fix markdown tests that I broke

This commit is contained in:
Matthew Holt 2015-07-29 17:47:33 -06:00
parent e1153f8797
commit f7129b219e

View file

@ -55,7 +55,7 @@ func TestMarkdown(t *testing.T) {
Title: "first",
Summary: "",
Date: time.Now(),
Url: "/og/first.md",
URL: "/og/first.md",
},
},
},
@ -191,8 +191,8 @@ func getTrue() bool {
for i, c := range md.Configs {
log.Printf("Test number: %d, configuration links: %v, config: %v", i, c.Links, c)
if c.Links[0].Url != expectedLinks[i] {
t.Fatalf("Expected %v got %v", expectedLinks[i], c.Links[0].Url)
if c.Links[0].URL != expectedLinks[i] {
t.Fatalf("Expected %v got %v", expectedLinks[i], c.Links[0].URL)
}
}