Adapt test for new ParseZone api
This commit is contained in:
parent
add6f10462
commit
2718f6f23a
|
@ -27,7 +27,7 @@ Activate: 20110302104537`
|
|||
|
||||
xk, _ := NewRR(pub)
|
||||
k := xk.(*RR_DNSKEY)
|
||||
p, err := ReadPrivateKey(strings.NewReader(priv))
|
||||
p, err := ReadPrivateKey(strings.NewReader(priv), "")
|
||||
if err != nil {
|
||||
t.Logf("%v\n", err)
|
||||
t.Fail()
|
||||
|
@ -101,7 +101,7 @@ z2.miek.nl. 86400 IN NSEC miek.nl. TXT RRSIG NSEC
|
|||
$TTL 100
|
||||
z3.miek.nl. IN NSEC miek.nl. TXT RRSIG NSEC`
|
||||
// Need to implementen owner substitution in the lexer.
|
||||
to := ParseZone(strings.NewReader(zone))
|
||||
to := ParseZone(strings.NewReader(zone), "")
|
||||
i := 0
|
||||
for x := range to {
|
||||
if x.Error == nil {
|
||||
|
@ -230,7 +230,7 @@ func BenchmarkZoneParsing(b *testing.B) {
|
|||
return
|
||||
}
|
||||
defer f.Close()
|
||||
to := ParseZone(f)
|
||||
to := ParseZone(f, "miek.nl.signed_test")
|
||||
for x := range to {
|
||||
x = x
|
||||
}
|
||||
|
@ -243,7 +243,7 @@ func TestZoneParsing(t *testing.T) {
|
|||
}
|
||||
defer f.Close()
|
||||
start := time.Now().UnixNano()
|
||||
to := ParseZone(f)
|
||||
to := ParseZone(f, "miek.nl.signed_test")
|
||||
var i int
|
||||
for x := range to {
|
||||
t.Logf("%s\n", x.RR)
|
||||
|
|
Loading…
Reference in New Issue