addressed majority of static checks

This commit is contained in:
0xdcarns
2023-01-24 11:20:06 -05:00
parent a710ac3570
commit 706bba0593
8 changed files with 36 additions and 73 deletions

View File

@@ -117,6 +117,7 @@ func TestGetCustomDNS(t *testing.T) {
t.Run("EntryExist", func(t *testing.T) {
entry := models.DNSEntry{"10.0.0.3", "", "custom1", "skynet"}
_, err := logic.CreateDNS(entry)
assert.Nil(t, err)
dns, err := logic.GetCustomDNS("skynet")
assert.Nil(t, err)
assert.Equal(t, 1, len(dns))