diff options
Diffstat (limited to 'middleware/etcd/stub_test.go')
-rw-r--r-- | middleware/etcd/stub_test.go | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/middleware/etcd/stub_test.go b/middleware/etcd/stub_test.go index 2ec89c0bf..5f22f42c9 100644 --- a/middleware/etcd/stub_test.go +++ b/middleware/etcd/stub_test.go @@ -4,7 +4,6 @@ package etcd import ( "net" - "sort" "strconv" "testing" @@ -66,23 +65,8 @@ func TestStubLookup(t *testing.T) { // etcd not running? continue } - 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) } } |