mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:51:08 -05:00
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 078c991574
to
an Errorf call to support the use of the %d token.
This commit is contained in:
parent
4750699ab0
commit
8bc7b93bc8
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ func TestHealthCheckContentString(t *testing.T) {
|
||||||
for i, test := range tests {
|
for i, test := range tests {
|
||||||
u, err := NewStaticUpstreams(caddyfile.NewDispenser("Testfile", strings.NewReader(test.config)), "")
|
u, err := NewStaticUpstreams(caddyfile.NewDispenser("Testfile", strings.NewReader(test.config)), "")
|
||||||
if err != nil {
|
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 {
|
for _, upstream := range u {
|
||||||
staticUpstream, ok := upstream.(*staticUpstream)
|
staticUpstream, ok := upstream.(*staticUpstream)
|
||||||
|
|
Loading…
Reference in a new issue