Factor out error type checks

This commit is contained in:
Bryan Boreham committed 2014-10-22 18:24:02 +01:00
1 parent 0a5990bd6e
commit 94a812d98f
3 files changed
+20 -15

No files matched your search

+1 -3
View File
@@ -69,9 +69,7 @@ func TestHttp(t *testing.T) {
// Check that the address is not there now.
_, err = zone.MatchLocal(success_test_name)
if _, ok := err.(LookupError); !ok {
t.Fatal(err)
}
assertErrorType(t, err, (*LookupError)(nil), "nonexistent lookup")
// Delete the address again, it should accept this
resp, err = genForm("DELETE", addr_url, nil)