diff options
Diffstat (limited to 'middleware/file/ent_test.go')
-rw-r--r-- | middleware/file/ent_test.go | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/middleware/file/ent_test.go b/middleware/file/ent_test.go index f8e5da4fe..433aa182d 100644 --- a/middleware/file/ent_test.go +++ b/middleware/file/ent_test.go @@ -1,7 +1,6 @@ package file import ( - "sort" "strings" "testing" @@ -51,25 +50,7 @@ func TestLookupEnt(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) } } |