mirror of
https://github.com/miekg/dns.git
synced 2025-10-11 18:01:02 +02:00
Fix the test
This commit is contained in:
parent
ee8ace0477
commit
b76ac5bde6
@ -41,14 +41,14 @@ func TestTooLongDomainName(t *testing.T) {
|
|||||||
_, e := NewRR(dom + " IN A 127.0.0.1")
|
_, e := NewRR(dom + " IN A 127.0.0.1")
|
||||||
if e == nil {
|
if e == nil {
|
||||||
t.Log("Should be too long")
|
t.Log("Should be too long")
|
||||||
t.Fatal()
|
t.Fail()
|
||||||
} else {
|
} else {
|
||||||
t.Logf("Error is %s", e.Error())
|
t.Logf("Error is %s", e.Error())
|
||||||
}
|
}
|
||||||
_, e = NewRR("@.com. IN A 127.0.0.1")
|
_, e = NewRR("..com. IN A 127.0.0.1")
|
||||||
if e == nil {
|
if e == nil {
|
||||||
t.Log("Should fail")
|
t.Log("Should fail")
|
||||||
t.Fatal()
|
t.Fail()
|
||||||
} else {
|
} else {
|
||||||
t.Logf("Error is %s", e.Error())
|
t.Logf("Error is %s", e.Error())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user