mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	tls: Fix failing test
This commit is contained in:
		
							parent
							
								
									2bcbdd6a17
								
							
						
					
					
						commit
						4b6e0e9369
					
				@ -64,12 +64,11 @@ func TestTLSParseBasic(t *testing.T) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestTLSParseIncompleteParams(t *testing.T) {
 | 
					func TestTLSParseIncompleteParams(t *testing.T) {
 | 
				
			||||||
	// This doesn't do anything useful but is allowed in case the user wants to be explicit
 | 
						// Using tls without args is an error because it's unnecessary.
 | 
				
			||||||
	// about TLS being enabled...
 | 
					 | 
				
			||||||
	c := NewTestController(`tls`)
 | 
						c := NewTestController(`tls`)
 | 
				
			||||||
	_, err := TLS(c)
 | 
						_, err := TLS(c)
 | 
				
			||||||
	if err != nil {
 | 
						if err == nil {
 | 
				
			||||||
		t.Errorf("Expected no error, but got %v", err)
 | 
							t.Error("Expected an error, but didn't get one")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user