Define length in multi-entry TXT parse length test in terms of header + rrdata

This commit is contained in:
Andrew Tunnell-Jones 2014-01-11 05:30:46 +00:00
parent 4584fc0cb3
commit 91f31a2b71
1 changed files with 1 additions and 1 deletions

View File

@ -734,7 +734,7 @@ func TestTXT(t *testing.T) {
if rr.String() != `_raop._tcp.local. 60 IN TXT "a=1" "b=2" "c=3" "d=4"` {
t.Error("Bad representation of TXT multi value record:", rr.String())
}
if rr.len() != 44 {
if rr.len() != 28+1+3+1+3+1+3+1+3 {
t.Error("Bad size of serialized multi value record:", rr.len())
}
}