Fix the testsuite

This commit is contained in:
Miek Gieben 2011-01-07 10:09:46 +01:00
parent 8b2c267b99
commit b5de7e1745
2 changed files with 5 additions and 3 deletions

View File

@ -57,9 +57,9 @@ func (rr *RR_OPT) String() string {
var r string
if e == nil {
for _, c := range h {
r += " (" + string(c) + ")"
r += "(" + string(c) + ")"
}
s += " " + r
s += " " + r
}
}
}
@ -116,6 +116,8 @@ func (rr *RR_OPT) Nsid() string {
return "NSID: " + rr.Option[0].Data
}
// Representation of NSID is in Hex
// Set the NSID
func (rr *RR_OPT) SetNsidToHex(hexnsid string) {
rr.Option[0].Code = OptionCodeNSID

View File

@ -28,7 +28,7 @@ func TestResolverEdns(t *testing.T) {
edns.SetUDPSize(4096)
edns.SetDo()
edns.Option = make([]dns.Option, 1)
edns.SetNsid("") // Empty to request it
edns.SetNsidToHex("") // Empty to request it
// ask something
m.Question[0] = dns.Question{"miek.nl", dns.TypeA, dns.ClassINET}