Commit 8bc7b93b authored by Josh Harmon's avatar Josh Harmon

proxy: Fix CI fail from format token in Error call

go vet caused a build fail in https://travis-ci.org/mholt/caddy/jobs/248392875:
   upstream_test.go:480::error: possible formatting directive in Error call (vet)

This patch changes the Error call added in commit 078c9915 to
an Errorf call to support the use of the %d token.
parent 4750699a
......@@ -477,7 +477,7 @@ func TestHealthCheckContentString(t *testing.T) {
for i, test := range tests {
u, err := NewStaticUpstreams(caddyfile.NewDispenser("Testfile", strings.NewReader(test.config)), "")
if err != nil {
t.Error("Expected no error. Test %d Got:", i, err.Error())
t.Errorf("Expected no error. Test %d Got: %s", i, err.Error())
}
for _, upstream := range u {
staticUpstream, ok := upstream.(*staticUpstream)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment