aboutsummaryrefslogtreecommitdiff
path: root/plugin/proxy/dnstap_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/proxy/dnstap_test.go')
-rw-r--r--plugin/proxy/dnstap_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/proxy/dnstap_test.go b/plugin/proxy/dnstap_test.go
index 6ed0c61ed..83696921a 100644
--- a/plugin/proxy/dnstap_test.go
+++ b/plugin/proxy/dnstap_test.go
@@ -14,9 +14,9 @@ import (
"golang.org/x/net/context"
)
-func testCase(t *testing.T, ex Exchanger, q, r *dns.Msg, datq, datr *msg.Data) {
- tapq := datq.ToOutsideQuery(tap.Message_FORWARDER_QUERY)
- tapr := datr.ToOutsideResponse(tap.Message_FORWARDER_RESPONSE)
+func testCase(t *testing.T, ex Exchanger, q, r *dns.Msg, datq, datr *msg.Builder) {
+ tapq, _ := datq.ToOutsideQuery(tap.Message_FORWARDER_QUERY)
+ tapr, _ := datr.ToOutsideResponse(tap.Message_FORWARDER_RESPONSE)
ctx := test.Context{}
err := toDnstap(&ctx, "10.240.0.1:40212", ex,
request.Request{W: &mwtest.ResponseWriter{}, Req: q}, r, time.Now())