Adapt test for new ParseZone api

This commit is contained in:
Miek Gieben 2012-01-21 23:39:48 +01:00
parent add6f10462
commit 2718f6f23a
1 changed files with 4 additions and 4 deletions

View File

@ -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)