From 59e7a8864ad9f0709a6874afbc5fa56ec5d5dff6 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 8 Feb 2019 12:43:20 -0700 Subject: [PATCH] caddyhttp: Fix test (adjust plugin counting) --- caddyhttp/caddyhttp_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caddyhttp/caddyhttp_test.go b/caddyhttp/caddyhttp_test.go index 4e759b54b..47b084a7b 100644 --- a/caddyhttp/caddyhttp_test.go +++ b/caddyhttp/caddyhttp_test.go @@ -25,9 +25,9 @@ import ( // ensure that the standard plugins are in fact plugged in // and registered properly; this is a quick/naive way to do it. func TestStandardPlugins(t *testing.T) { - numStandardPlugins := 31 // importing caddyhttp plugs in this many plugins + numStandardPlugins := 32 // importing caddyhttp plugs in this many plugins s := caddy.DescribePlugins() - if got, want := strings.Count(s, "\n"), numStandardPlugins+7; got != want { + if got, want := strings.Count(s, "\n"), numStandardPlugins+4; got != want { t.Errorf("Expected all standard plugins to be plugged in, got:\n%s", s) } }