rename
This commit is contained in:
1 parent
7187d38047
commit
2680e594dd
5 files changed
+14
-14
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user