"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "internal/home/home_test.go" between
AdGuardHome-0.105.1.tar.gz and AdGuardHome-0.105.2.tar.gz

About: AdGuard Home is a network-wide ads & trackers blocking DNS server. It operates as a DNS server that re-routes tracking domains to a "black hole," thus preventing your devices from connecting to those servers.

home_test.go  (AdGuardHome-0.105.1):home_test.go  (AdGuardHome-0.105.2)
skipping to change at line 149 skipping to change at line 149
time.Sleep(100 * time.Millisecond) time.Sleep(100 * time.Millisecond)
} }
assert.Nilf(t, err, "%s", err) assert.Nilf(t, err, "%s", err)
assert.Equal(t, http.StatusOK, resp.StatusCode) assert.Equal(t, http.StatusOK, resp.StatusCode)
resp, err = h.Get("http://127.0.0.1:3000/control/status") resp, err = h.Get("http://127.0.0.1:3000/control/status")
assert.Nilf(t, err, "%s", err) assert.Nilf(t, err, "%s", err)
assert.Equal(t, http.StatusOK, resp.StatusCode) assert.Equal(t, http.StatusOK, resp.StatusCode)
// test DNS over UDP // test DNS over UDP
r, err := upstream.NewResolver("127.0.0.1:5354", 3*time.Second) r, err := upstream.NewResolver("127.0.0.1:5354", upstream.Options{Timeout : 3 * time.Second})
assert.Nil(t, err) assert.Nil(t, err)
addrs, err := r.LookupIPAddr(context.TODO(), "static.adguard.com") addrs, err := r.LookupIPAddr(context.TODO(), "static.adguard.com")
assert.Nil(t, err) assert.Nil(t, err)
haveIP := len(addrs) != 0 haveIP := len(addrs) != 0
assert.True(t, haveIP) assert.True(t, haveIP)
// test DNS over HTTP without encryption // test DNS over HTTP without encryption
req := dns.Msg{} req := dns.Msg{}
req.Id = dns.Id() req.Id = dns.Id()
req.RecursionDesired = true req.RecursionDesired = true
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)