From 5fc21d26a1a457c9fbb59ca2687ad7ac7cf259e9 Mon Sep 17 00:00:00 2001 From: Pauline Middelink Date: Sat, 27 Feb 2016 13:02:32 +0100 Subject: [PATCH] Updates after comments from miekg. --- update_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update_test.go b/update_test.go index aec5f94e..3377aa90 100644 --- a/update_test.go +++ b/update_test.go @@ -6,7 +6,6 @@ import ( ) func TestDynamicUpdateParsing(t *testing.T) { - // This does nothing with dynamic updates, move elsewhere? prefix := "example.com. IN " for _, typ := range TypeToString { if typ == "OPT" || typ == "AXFR" || typ == "IXFR" || typ == "ANY" || typ == "TKEY" || @@ -89,7 +88,7 @@ func TestPreReqAndRemovals(t *testing.T) { // Build a list of multiple prereqs and then somes removes followed by an insert. // We should be able to add multiple prereqs and updates. m := new(Msg) - m.SetUpdate("some_zone.") + m.SetUpdate("example.org.") m.Id = 1234 // Use a full set of RRs each time, so we are sure the rdata is stripped. @@ -120,7 +119,7 @@ func TestPreReqAndRemovals(t *testing.T) { ;; flags:; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 0 ;; QUESTION SECTION: -;some_zone. IN SOA +;example.org. IN SOA ;; ANSWER SECTION: name_used. 0 ANY ANY