aboutsummaryrefslogtreecommitdiff
path: root/cmd/resolverbench
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/resolverbench')
-rw-r--r--cmd/resolverbench/main.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/cmd/resolverbench/main.go b/cmd/resolverbench/main.go
index ffa8e77..e042dec 100644
--- a/cmd/resolverbench/main.go
+++ b/cmd/resolverbench/main.go
@@ -45,9 +45,17 @@ func main() {
}
exp := rr.Value.(string)
- got := res.Answer[0].Value.(string)
+ got := ""
+ found := false
+ for x := 0; x < len(res.Answer); x++ {
+ got = res.Answer[x].Value.(string)
+ if exp == got {
+ found = true
+ break
+ }
+ }
- if exp != got {
+ if !found {
nfail++
log.Printf(`! Answer not matched %s:
expecting: %s