Skip to content

Commit

Permalink
all: upd more
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Apr 4, 2024
1 parent 9e55bbb commit a1bd3c2
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion internal/aghrenameio/renameio_test.go
Expand Up @@ -78,7 +78,6 @@ func TestWithDeferredCleanup(t *testing.T) {
}}

for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down
4 changes: 0 additions & 4 deletions internal/client/addrproc_test.go
Expand Up @@ -91,8 +91,6 @@ func TestDefaultAddrProc_Process_rDNS(t *testing.T) {
}}

for _, tc := range testCases {
tc := tc

t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -186,8 +184,6 @@ func TestDefaultAddrProc_Process_WHOIS(t *testing.T) {
}}

for _, tc := range testCases {
tc := tc

t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down
1 change: 0 additions & 1 deletion internal/dnsforward/dns64_test.go
Expand Up @@ -266,7 +266,6 @@ func TestServer_HandleDNSRequest_dns64(t *testing.T) {
}

for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
upsHdlr := dns.HandlerFunc(func(w dns.ResponseWriter, req *dns.Msg) {
q := req.Question[0]
Expand Down
4 changes: 0 additions & 4 deletions internal/dnsforward/process_internal_test.go
Expand Up @@ -70,8 +70,6 @@ func TestServer_ProcessInitial(t *testing.T) {
}}

for _, tc := range testCases {
tc := tc

t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -171,8 +169,6 @@ func TestServer_ProcessFilteringAfterResponse(t *testing.T) {
}}

for _, tc := range testCases {
tc := tc

t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down
2 changes: 0 additions & 2 deletions internal/filtering/idgenerator_internal_test.go
Expand Up @@ -63,8 +63,6 @@ func TestIDGenerator_Fix(t *testing.T) {
}}

for _, tc := range testCases {
tc := tc

t.Run(tc.name, func(t *testing.T) {
g := newIDGenerator(1)
g.fix(tc.in)
Expand Down
1 change: 0 additions & 1 deletion internal/filtering/rulelist/parser_test.go
Expand Up @@ -132,7 +132,6 @@ func TestParser_Parse(t *testing.T) {
}}

for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down
3 changes: 1 addition & 2 deletions internal/stats/unit.go
Expand Up @@ -525,9 +525,8 @@ func (s *StatsCtx) fillCollectedStatsDaily(
hours := countHours(curHour, days)
units = units[len(units)-hours:]

for i := range len(units) {
for i, u := range units {
day := i / 24
u := units[i]

data.DNSQueries[day] += u.NTotal
data.BlockedFiltering[day] += u.NResult[RFiltered]
Expand Down

0 comments on commit a1bd3c2

Please sign in to comment.