This commit is contained in:
Matthias Radestock committed 2014-11-28 16:27:11 +00:00
1 parent 7187d38047
commit 2680e594dd
5 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -42,7 +42,7 @@ func TestHttp(t *testing.T) {
assertStatus(t, resp.StatusCode, http.StatusOK, "http response")
// Check that the address is now there.
foundIP, err := zone.MatchLocal(successTestName)
foundIP, err := zone.LookupLocal(successTestName)
assertNoErr(t, err)
ip, _, _ := net.ParseCIDR(testAddr1)
if !foundIP.Equal(ip) {
@@ -68,7 +68,7 @@ func TestHttp(t *testing.T) {
assertStatus(t, resp.StatusCode, http.StatusOK, "http response")
// Check that the address is not there now.
_, err = zone.MatchLocal(successTestName)
_, err = zone.LookupLocal(successTestName)
assertErrorType(t, err, (*LookupError)(nil), "nonexistent lookup")
// Delete the address again, it should accept this