mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	dnstap.TapperFromContext always returns nil (#2018)
Automatically submitted.
This commit is contained in:
		
							
								
								
									
										15
									
								
								plugin/dnstap/context_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								plugin/dnstap/context_test.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| package dnstap | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| 	"testing" | ||||
| ) | ||||
|  | ||||
| func TestDnstapContext(t *testing.T) { | ||||
| 	ctx := tapContext{context.TODO(), Dnstap{}} | ||||
| 	tapper := TapperFromContext(ctx) | ||||
|  | ||||
| 	if tapper == nil { | ||||
| 		t.Fatal("Can't get tapper") | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user