Define length in multi-entry TXT parse length test in terms of header + rrdata
This commit is contained in:
parent
4584fc0cb3
commit
91f31a2b71
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue