diff --git a/command/agent/alloc_endpoint_test.go b/command/agent/alloc_endpoint_test.go index a47c40009..e2a4efd83 100644 --- a/command/agent/alloc_endpoint_test.go +++ b/command/agent/alloc_endpoint_test.go @@ -159,7 +159,7 @@ func TestHTTP_AllocStats(t *testing.T) { // Make the request _, err = s.Server.ClientAllocRequest(respW, req) - if !strings.Contains(err.Error(), urlNotFoundErr) { + if !strings.Contains(err.Error(), allocNotFoundErr) { t.Fatalf("err: %v", err) } })