Fix tests

This commit is contained in:
Daniel
2021-04-19 15:11:11 +02:00
parent efdc0b7849
commit 81fb67bb48
4 changed files with 12 additions and 7 deletions

View File

@@ -9,6 +9,9 @@ func TestNameRecordStorage(t *testing.T) {
testNameRecord := &NameRecord{
Domain: testDomain,
Question: testQuestion,
Resolver: &ResolverInfo{
Type: "dns",
},
}
err := testNameRecord.Save()

View File

@@ -33,5 +33,5 @@ func TestResolveIPAndValidate(t *testing.T) {
testReverse(t, "2606:4700:4700::1111", "one.one.one.one.", "")
testReverse(t, "93.184.216.34", "example.com.", "record could not be found: 34.216.184.93.in-addr.arpa.PTR")
testReverse(t, "185.199.109.153", "sites.github.io.", "record could not be found: 153.109.199.185.in-addr.arpa.PTR")
testReverse(t, "185.199.109.153", "cdn-185-199-109-153.github.com.", "record could not be found: 153.109.199.185.in-addr.arpa.PTR")
}

View File

@@ -13,6 +13,9 @@ func TestCaching(t *testing.T) {
testNameRecord := &NameRecord{
Domain: testDomain,
Question: testQuestion,
Resolver: &ResolverInfo{
Type: "dns",
},
}
err := testNameRecord.Save()