mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-04 03:03:14 -05:00 
			
		
		
		
	Fix the casing *and* fix use of context as we were still referencing the non-std lib context - no wondering how this could have worked...
		
			
				
	
	
		
			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()
 | 
						|
}
 |