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

config: format string fixes from vet

This commit is contained in:
Damian Gryski 2015-05-03 19:43:04 +02:00
parent 4ed9387801
commit a872ff2d77

View file

@ -318,13 +318,13 @@ func TestParserLocationContext(t *testing.T) {
}
if p.other[0].path != "/" {
t.Fatalf("Expected first path scope to be default '/', but got %d: %#v", p.other[0].path, p.other)
t.Fatalf("Expected first path scope to be default '/', but got %v: %#v", p.other[0].path, p.other)
}
if p.other[1].path != "/scope" {
t.Fatalf("Expected first path scope to be '/scope', but got %d: %#v", p.other[0].path, p.other)
t.Fatalf("Expected first path scope to be '/scope', but got %v: %#v", p.other[0].path, p.other)
}
if dir, ok := p.other[1].directives["gzip"]; !ok {
t.Fatalf("Expected scoped directive to be gzip, but got %d: %#v", dir, p.other[1].directives)
t.Fatalf("Expected scoped directive to be gzip, but got %v: %#v", dir, p.other[1].directives)
}
}