Fix the test

This commit is contained in:
Miek Gieben 2013-09-12 08:14:42 +01:00
parent ee8ace0477
commit b76ac5bde6
1 changed files with 3 additions and 3 deletions

View File

@ -41,14 +41,14 @@ func TestTooLongDomainName(t *testing.T) {
_, e := NewRR(dom + " IN A 127.0.0.1")
if e == nil {
t.Log("Should be too long")
t.Fatal()
t.Fail()
} else {
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 {
t.Log("Should fail")
t.Fatal()
t.Fail()
} else {
t.Logf("Error is %s", e.Error())
}