mirror of
https://github.com/miekg/dns.git
synced 2025-10-10 17:31:01 +02:00
Update all the tests
This commit is contained in:
parent
9a38f97391
commit
500a32e64f
@ -131,7 +131,6 @@ func TestClientAXFRMultipleMessages(t *testing.T) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
// not really a test, but shows how to use update leases
|
// not really a test, but shows how to use update leases
|
||||||
func TestUpdateLeaseTSIG(t *testing.T) {
|
func TestUpdateLeaseTSIG(t *testing.T) {
|
||||||
m := new(Msg)
|
m := new(Msg)
|
||||||
@ -154,16 +153,8 @@ func TestUpdateLeaseTSIG(t *testing.T) {
|
|||||||
m.SetTsig("polvi.", HmacMD5, 300, time.Now().Unix())
|
m.SetTsig("polvi.", HmacMD5, 300, time.Now().Unix())
|
||||||
c.TsigSecret = map[string]string{"polvi.": "pRZgBrBvI4NAHZYhxmhs/Q=="}
|
c.TsigSecret = map[string]string{"polvi.": "pRZgBrBvI4NAHZYhxmhs/Q=="}
|
||||||
|
|
||||||
co := new(Conn)
|
_, _, err := c.Exchange(m, "127.0.0.1:53")
|
||||||
w.client = c
|
if err != nil {
|
||||||
w.addr = "127.0.0.1:53"
|
|
||||||
w.req = m
|
|
||||||
|
|
||||||
if err := w.dial(); err != nil {
|
|
||||||
t.Fail()
|
|
||||||
}
|
|
||||||
if err := w.send(m); err != nil {
|
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user