summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Turner <jt@jtnet.co.uk>2017-12-07 20:59:16 +0000
committerJonathan Turner <jt@jtnet.co.uk>2017-12-07 20:59:16 +0000
commite31697ae0d932fe7556a2c24e0f759022e940703 (patch)
tree204a8d8f2819ba4431118b022abfa6e2c3cc6579
parentcffe027292dbbf922b862188d01af5a5a5341074 (diff)
str comparison
-rw-r--r--srv_integration_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/srv_integration_test.go b/srv_integration_test.go
index eb25220..a26dc85 100644
--- a/srv_integration_test.go
+++ b/srv_integration_test.go
@@ -5,6 +5,8 @@ package dnsutils
import (
"github.com/stretchr/testify/assert"
+ "strconv"
+ "strings"
"testing"
)
@@ -26,7 +28,8 @@ func TestResolveKDC(t *testing.T) {
for _, s := range expected {
var found bool
for _, v := range res {
- if s == v {
+ srvStr := strings.TrimRight(v.Target, ".") + ":" + strconv.Itoa(int(v.Port))
+ if s == srvStr {
found = true
break
}