mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			273 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			273 B
		
	
	
	
		
			Go
		
	
	
	
	
	
|  | package test
 | ||
|  | 
 | ||
|  | import (
 | ||
|  | 	"testing"
 | ||
|  | )
 | ||
|  | 
 | ||
|  | func TestCorefile1(t *testing.T) {
 | ||
|  | 	corefile := `ȶ
 | ||
|  | acl
 | ||
|  | `
 | ||
|  | 	// this crashed, now it should return an error.
 | ||
|  | 	i, _, _, err := CoreDNSServerAndPorts(corefile)
 | ||
|  | 	if err == nil {
 | ||
|  | 		defer i.Stop()
 | ||
|  | 		t.Fatalf("Expected an error got none")
 | ||
|  | 	}
 | ||
|  | }
 |