mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	fix TestCorefile1 panic for nil handling (#6802)
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
This commit is contained in:
		| @@ -16,5 +16,9 @@ func TestCorefile1(t *testing.T) { | |||||||
| acl | acl | ||||||
| ` | ` | ||||||
| 	i, _, _, _ := CoreDNSServerAndPorts(corefile) | 	i, _, _, _ := CoreDNSServerAndPorts(corefile) | ||||||
| 	defer i.Stop() | 	defer func() { | ||||||
|  | 		if i != nil { | ||||||
|  | 			i.Stop() | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user