mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-30 18:22:49 -04:00 
			
		
		
		
	Fix failing test
This commit is contained in:
		
							parent
							
								
									aefd821ae0
								
							
						
					
					
						commit
						e77992dd99
					
				| @ -60,7 +60,7 @@ func TestMapRespondWithDefault(t *testing.T) { | |||||||
| 	tester.AssertPostResponseBody("http://localhost:9080/version", []string{}, bytes.NewBuffer([]byte{}), 200, "hello from localhost unknown") | 	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 | 	// arrange | ||||||
| 	tester := caddytest.NewTester(t) | 	tester := caddytest.NewTester(t) | ||||||
| 	tester.InitServer(` | 	tester.InitServer(` | ||||||
| @ -85,7 +85,7 @@ func TestMapAsJson(t *testing.T) { | |||||||
| 													{ | 													{ | ||||||
| 														"handler": "map", | 														"handler": "map", | ||||||
| 														"source": "{http.request.method}", | 														"source": "{http.request.method}", | ||||||
| 														"destinations": ["dest-name"], | 														"destinations": ["{dest-name}"], | ||||||
| 														"defaults": ["unknown"], | 														"defaults": ["unknown"], | ||||||
| 														"mappings": [ | 														"mappings": [ | ||||||
| 															{ | 															{ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user