From 5f8b88471fd13a2206efdd9fbd83c67a49f5c735 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Wed, 6 May 2026 11:56:19 +0200 Subject: [PATCH] Initialize dnsFirewall in registryConfigurator tests --- client/internal/dns/host_windows_test.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/client/internal/dns/host_windows_test.go b/client/internal/dns/host_windows_test.go index 3cd2b1bd5..c47723324 100644 --- a/client/internal/dns/host_windows_test.go +++ b/client/internal/dns/host_windows_test.go @@ -8,6 +8,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "golang.org/x/sys/windows/registry" + + "github.com/netbirdio/netbird/client/internal/dns/dnsfw" ) // TestNRPTEntriesCleanupOnConfigChange tests that old NRPT entries are properly cleaned up @@ -34,8 +36,9 @@ func TestNRPTEntriesCleanupOnConfigChange(t *testing.T) { }() cfg := ®istryConfigurator{ - guid: testGUID, - gpo: false, + guid: testGUID, + gpo: false, + dnsFirewall: dnsfw.New(), } // Create 125 domains which will result in 3 NRPT rules (50+50+25) @@ -134,8 +137,9 @@ func TestNRPTDomainBatching(t *testing.T) { }() cfg := ®istryConfigurator{ - guid: testGUID, - gpo: false, + guid: testGUID, + gpo: false, + dnsFirewall: dnsfw.New(), } testCases := []struct {