mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
Fix failing test
This commit is contained in:
parent
aefd821ae0
commit
e77992dd99
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ func TestMapRespondWithDefault(t *testing.T) {
|
|||
tester.AssertPostResponseBody("http://localhost:9080/version", []string{}, bytes.NewBuffer([]byte{}), 200, "hello from localhost unknown")
|
||||
}
|
||||
|
||||
func TestMapAsJson(t *testing.T) {
|
||||
func TestMapAsJSON(t *testing.T) {
|
||||
// arrange
|
||||
tester := caddytest.NewTester(t)
|
||||
tester.InitServer(`
|
||||
|
@ -85,7 +85,7 @@ func TestMapAsJson(t *testing.T) {
|
|||
{
|
||||
"handler": "map",
|
||||
"source": "{http.request.method}",
|
||||
"destinations": ["dest-name"],
|
||||
"destinations": ["{dest-name}"],
|
||||
"defaults": ["unknown"],
|
||||
"mappings": [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue