Skip to content

Commit

Permalink
safesearch: imp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Apr 10, 2024
1 parent 492a93f commit 0c77c70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/filtering/safesearch/safesearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ func TestDefault_CheckHost_yandex(t *testing.T) {
}}

for _, tc := range testCases {
for _, host := range hosts {
t.Run(tc.name+"_"+host, func(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
for _, host := range hosts {
// Check host for each domain.
var res filtering.Result
res, err = ss.CheckHost(host, tc.qt)
Expand All @@ -97,8 +97,8 @@ func TestDefault_CheckHost_yandex(t *testing.T) {

assert.Equal(t, tc.want, res.Rules[0].IP)
assert.Equal(t, rulelist.URLFilterIDSafeSearch, res.Rules[0].FilterListID)
})
}
}
})
}
}

Expand Down

0 comments on commit 0c77c70

Please sign in to comment.