Fix tests
This commit is contained in:
@@ -9,6 +9,9 @@ func TestNameRecordStorage(t *testing.T) {
|
||||
testNameRecord := &NameRecord{
|
||||
Domain: testDomain,
|
||||
Question: testQuestion,
|
||||
Resolver: &ResolverInfo{
|
||||
Type: "dns",
|
||||
},
|
||||
}
|
||||
|
||||
err := testNameRecord.Save()
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
@@ -13,6 +13,9 @@ func TestCaching(t *testing.T) {
|
||||
testNameRecord := &NameRecord{
|
||||
Domain: testDomain,
|
||||
Question: testQuestion,
|
||||
Resolver: &ResolverInfo{
|
||||
Type: "dns",
|
||||
},
|
||||
}
|
||||
|
||||
err := testNameRecord.Save()
|
||||
|
||||
Reference in New Issue
Block a user