mirror of
https://github.com/coredns/coredns.git
synced 2025-11-22 03:42:16 -05:00
test: add t.Helper() calls to test helper functions (#7351)
This commit is contained in:
@@ -136,6 +136,7 @@ func TestWeightFileUpdate(t *testing.T) {
|
||||
}
|
||||
|
||||
func checkDomainsWRR(t *testing.T, testIndex int, expectedDomains, domains map[string]weights) error {
|
||||
t.Helper()
|
||||
var ret error
|
||||
retError := errors.New("Check domains failed")
|
||||
for dname, expectedWeights := range expectedDomains {
|
||||
@@ -410,6 +411,7 @@ func TestLoadBalanceWRR(t *testing.T) {
|
||||
}
|
||||
|
||||
func checkTopIP(t *testing.T, i, j int, result []dns.RR, expectedTopIP string) {
|
||||
t.Helper()
|
||||
expected := net.ParseIP(expectedTopIP)
|
||||
for _, r := range result {
|
||||
switch r.Header().Rrtype {
|
||||
|
||||
Reference in New Issue
Block a user