aboutsummaryrefslogtreecommitdiff
path: root/middleware/etcd/other_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/etcd/other_test.go')
-rw-r--r--middleware/etcd/other_test.go19
1 files changed, 1 insertions, 18 deletions
diff --git a/middleware/etcd/other_test.go b/middleware/etcd/other_test.go
index 22b720078..b3849b9f7 100644
--- a/middleware/etcd/other_test.go
+++ b/middleware/etcd/other_test.go
@@ -6,7 +6,6 @@ package etcd
import (
"fmt"
- "sort"
"strings"
"testing"
@@ -35,23 +34,7 @@ func TestOtherLookup(t *testing.T) {
}
resp := rec.Msg
- sort.Sort(test.RRSet(resp.Answer))
- sort.Sort(test.RRSet(resp.Ns))
- sort.Sort(test.RRSet(resp.Extra))
-
- if !test.Header(t, tc, resp) {
- t.Logf("%v\n", resp)
- continue
- }
- if !test.Section(t, tc, test.Answer, resp.Answer) {
- t.Logf("%v\n", resp)
- }
- if !test.Section(t, tc, test.Ns, resp.Ns) {
- t.Logf("%v\n", resp)
- }
- if !test.Section(t, tc, test.Extra, resp.Extra) {
- t.Logf("%v\n", resp)
- }
+ test.SortAndCheck(t, resp, tc)
}
}