Factor out error type checks
This commit is contained in:
1 parent
0a5990bd6e
commit
94a812d98f
3 files changed
+20
-15
No files matched your search
+1
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user