diff options
author | Matthew Holt <[email protected]> | 2019-05-16 11:46:17 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2019-05-16 11:46:17 -0600 |
commit | ff5b4639d597203f8aec43e5eae8fe3774976d32 (patch) | |
tree | fa7f9d24494f61232c87efd6b68ee7f8909ffb00 /modules/caddyhttp/matchers_test.go | |
parent | f9d93ead4ef6e099ba7e00318dce6509b0f1eda4 (diff) | |
download | caddy-ff5b4639d597203f8aec43e5eae8fe3774976d32.tar.gz caddy-ff5b4639d597203f8aec43e5eae8fe3774976d32.zip |
Some minor updates, and get rid of OnLoad/OnUnload
Diffstat (limited to 'modules/caddyhttp/matchers_test.go')
-rw-r--r-- | modules/caddyhttp/matchers_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/caddyhttp/matchers_test.go b/modules/caddyhttp/matchers_test.go index 7da09a60a..f23efab06 100644 --- a/modules/caddyhttp/matchers_test.go +++ b/modules/caddyhttp/matchers_test.go @@ -217,10 +217,10 @@ func TestPathREMatcher(t *testing.T) { } for key, expectVal := range tc.expectRepl { - placeholder := fmt.Sprintf("{http.matchers.path_regexp.%s}", key) + placeholder := fmt.Sprintf("{matchers.path_regexp.%s}", key) actualVal := repl.Replace(placeholder, "<empty>") if actualVal != expectVal { - t.Errorf("Test %d [%v]: Expected placeholder {http.matchers.path_regexp.%s} to be '%s' but got '%s'", + t.Errorf("Test %d [%v]: Expected placeholder {matchers.path_regexp.%s} to be '%s' but got '%s'", i, tc.match.Pattern, key, expectVal, actualVal) continue } @@ -334,10 +334,10 @@ func TestHeaderREMatcher(t *testing.T) { } for key, expectVal := range tc.expectRepl { - placeholder := fmt.Sprintf("{http.matchers.header_regexp.%s}", key) + placeholder := fmt.Sprintf("{matchers.header_regexp.%s}", key) actualVal := repl.Replace(placeholder, "<empty>") if actualVal != expectVal { - t.Errorf("Test %d [%v]: Expected placeholder {http.matchers.header_regexp.%s} to be '%s' but got '%s'", + t.Errorf("Test %d [%v]: Expected placeholder {matchers.header_regexp.%s} to be '%s' but got '%s'", i, tc.match, key, expectVal, actualVal) continue } |