From 8c42355c0093a3ac6951f79a5211e7891800f93a Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Wed, 7 Apr 2021 18:07:41 +0300 Subject: [PATCH] dnsforward: rm errors pkg --- internal/dnsforward/dnsforward_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/dnsforward/dnsforward_test.go b/internal/dnsforward/dnsforward_test.go index 8c537f455d3..6d16ac1235e 100644 --- a/internal/dnsforward/dnsforward_test.go +++ b/internal/dnsforward/dnsforward_test.go @@ -8,7 +8,6 @@ import ( "crypto/x509" "crypto/x509/pkix" "encoding/pem" - "errors" "fmt" "io/ioutil" "math/big" @@ -19,6 +18,7 @@ import ( "testing" "time" + "github.com/AdguardTeam/AdGuardHome/internal/agherr" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGuardHome/internal/aghtest" "github.com/AdguardTeam/AdGuardHome/internal/dhcpd" @@ -1178,7 +1178,7 @@ func TestServer_Exchange(t *testing.T) { "2.1.168.192.in-addr.arpa.": {}, }, } - upstreamErr := errors.New("upstream error") + upstreamErr := agherr.Error("upstream error") errUpstream := &aghtest.TestErrUpstream{ Err: upstreamErr, }