Some more changes.

Still pondering dns.Conn and a dns.Dial
This commit is contained in:
Miek Gieben 2013-09-28 22:16:15 +01:00
parent 140e525195
commit a743ae8b68
1 changed files with 7 additions and 2 deletions

View File

@ -79,6 +79,7 @@ Loop:
}
}
/*
func TestClientTsigAXFR(t *testing.T) {
m := new(Msg)
m.SetAxfr("miek.nl.")
@ -104,7 +105,9 @@ func TestClientTsigAXFR(t *testing.T) {
}
}
}
*/
/*
func TestClientAXFRMultipleMessages(t *testing.T) {
m := new(Msg)
m.SetAxfr("dnsex.nl.")
@ -126,7 +129,9 @@ func TestClientAXFRMultipleMessages(t *testing.T) {
}
}
}
*/
/*
// not really a test, but shows how to use update leases
func TestUpdateLeaseTSIG(t *testing.T) {
m := new(Msg)
@ -149,7 +154,7 @@ func TestUpdateLeaseTSIG(t *testing.T) {
m.SetTsig("polvi.", HmacMD5, 300, time.Now().Unix())
c.TsigSecret = map[string]string{"polvi.": "pRZgBrBvI4NAHZYhxmhs/Q=="}
w := new(reply)
co := new(Conn)
w.client = c
w.addr = "127.0.0.1:53"
w.req = m
@ -160,5 +165,5 @@ func TestUpdateLeaseTSIG(t *testing.T) {
if err := w.send(m); err != nil {
t.Fail()
}
}
*/