diff options
author | Jonathan Turner <jt@jtnet.co.uk> | 2017-12-07 21:10:55 +0000 |
---|---|---|
committer | Jonathan Turner <jt@jtnet.co.uk> | 2017-12-07 21:10:55 +0000 |
commit | 8f94f55a7d17857e62ebb221095b98e2efc08039 (patch) | |
tree | b4cddcac2f0f6e4168bb2211d20297fc2d77bcfe | |
parent | f8386fc1c4a51f10f7819ca18b53d85760736607 (diff) |
test
-rw-r--r-- | srv.go | 2 | ||||
-rw-r--r-- | srv_integration_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -49,7 +49,7 @@ func orderSRV(addrs []*net.SRV) (int, map[int]*net.SRV) { for _, p := range priorities { tos := weightedOrder(prioMap[p]) for i, s := range tos { - fmt.Fprintf(os.Stderr, "srv: %v", s.Target) + fmt.Fprintf(os.Stderr, "srv: %v\n", s.Target) count += 1 osrv[o+i] = s } diff --git a/srv_integration_test.go b/srv_integration_test.go index fd703eb..b1d5bf7 100644 --- a/srv_integration_test.go +++ b/srv_integration_test.go @@ -11,7 +11,7 @@ import ( ) func TestResolveKDC(t *testing.T) { - for i := 0; i < 100; i++ { + for i := 0; i < 1; i++ { count, res, err := OrderedSRV("kerberos", "tcp", "test.gokrb5") if err != nil { t.Errorf("error resolving SRV DNS records: %v", err) |