aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/metrics/recorder_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin/metrics/recorder_test.go b/plugin/metrics/recorder_test.go
index 486d5ca20..fd8c5fc8d 100644
--- a/plugin/metrics/recorder_test.go
+++ b/plugin/metrics/recorder_test.go
@@ -4,11 +4,11 @@ import (
"testing"
"github.com/coredns/coredns/plugin/test"
-
+
"github.com/miekg/dns"
)
-type inmemoryWriter struct{
+type inmemoryWriter struct {
test.ResponseWriter
written []byte
}
@@ -33,16 +33,16 @@ func TestRecorder_WriteMsg(t *testing.T) {
nxdomainResp.Rcode = dns.RcodeNameError
tests := []struct {
- name string
- msg *dns.Msg
+ name string
+ msg *dns.Msg
}{
{
name: "should record successful response",
- msg: &successResp,
+ msg: &successResp,
},
{
name: "should record nxdomain response",
- msg: &nxdomainResp,
+ msg: &nxdomainResp,
},
}
for i, tt := range tests {