File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,13 @@ import (
1313 "github.com/golang/mock/gomock"
1414 "github.com/miekg/dns"
1515 "github.com/qdm12/dns/internal/mockhelp"
16+ "github.com/qdm12/dns/pkg/dnssec"
1617 "github.com/stretchr/testify/assert"
1718 "github.com/stretchr/testify/require"
1819)
1920
21+ func boolPtr (b bool ) * bool { return & b }
22+
2023func Test_Resolver (t * testing.T ) {
2124 t .Parallel ()
2225
@@ -221,6 +224,9 @@ func Test_Server_Mocks(t *testing.T) {
221224 Resolver : ResolverSettings {
222225 Metrics : metrics ,
223226 },
227+ DNSSEC : dnssec.Settings {
228+ Enabled : boolPtr (false ),
229+ },
224230 })
225231 require .NoError (t , err )
226232
Original file line number Diff line number Diff line change @@ -12,10 +12,13 @@ import (
1212 "github.com/golang/mock/gomock"
1313 "github.com/miekg/dns"
1414 "github.com/qdm12/dns/internal/mockhelp"
15+ "github.com/qdm12/dns/pkg/dnssec"
1516 "github.com/stretchr/testify/assert"
1617 "github.com/stretchr/testify/require"
1718)
1819
20+ func boolPtr (b bool ) * bool { return & b }
21+
1922func Test_Resolver (t * testing.T ) {
2023 t .Parallel ()
2124
@@ -201,6 +204,9 @@ func Test_Server_Mocks(t *testing.T) {
201204 Resolver : ResolverSettings {
202205 Metrics : metrics ,
203206 },
207+ DNSSEC : dnssec.Settings {
208+ Enabled : boolPtr (false ),
209+ },
204210 })
205211 require .NoError (t , err )
206212
You can’t perform that action at this time.
0 commit comments