mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-27 08:14:18 -04:00 
			
		
		
		
	Create a small speedup running the tests: PASS ok github.com/miekg/coredns/test 10.329s PASS ok github.com/miekg/coredns/test 6.079s Skip the etcd ones. Doing the middleware/*/*_test ones doesn't yield any speedup as these are still done on a per directory basis.
		
			
				
	
	
		
			13 lines
		
	
	
		
			193 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			193 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package test
 | |
| 
 | |
| import "testing"
 | |
| 
 | |
| func TestTempFile(t *testing.T) {
 | |
| 	t.Parallel()
 | |
| 	_, f, e := TempFile(".", "test")
 | |
| 	if e != nil {
 | |
| 		t.Fatalf("failed to create temp file: %s", e)
 | |
| 	}
 | |
| 	defer f()
 | |
| }
 |