Fix context passing (#2681)

This commit is contained in:
Stefan Budeanu
2019-03-13 14:08:33 -04:00
committed by Miek Gieben
parent 26e4026ec1
commit f798d18bdd
3 changed files with 26 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import (
)
func TestDnstapContext(t *testing.T) {
ctx := tapContext{context.TODO(), Dnstap{}}
ctx := ContextWithTapper(context.TODO(), Dnstap{})
tapper := TapperFromContext(ctx)
if tapper == nil {