Jonathan Turner 8 лет назад
Родитель
Сommit
ba8366e57c
2 измененных файлов с 5 добавлено и 2 удалено
  1. 2 2
      .travis.yml
  2. 3 0
      client/client_dns_test.go

+ 2 - 2
.travis.yml

@@ -39,8 +39,8 @@ script:
   - test -z $(gofmt -s -l $GO_FILES)         # Fail if a .go file hasn't been formatted with gofmt
   - test -z $(gofmt -s -l $GO_FILES)         # Fail if a .go file hasn't been formatted with gofmt
   - go vet ./...                             # go vet is the official Go static analyzer
   - go vet ./...                             # go vet is the official Go static analyzer
   #- golint -set_exit_status $(go list ./...) # golint to be added
   #- golint -set_exit_status $(go list ./...) # golint to be added
-  - go test -v -race -tags=integration ./... # Run all the tests with the race detector enabled and integration tests
-  - GOARCH=386 go test -v -tags=integration ./... # 32bit tests
+  - go test -v -race -tags="integration dns" ./... # Run all the tests with the race detector enabled and integration tests
+  - GOARCH=386 go test -v -tags="integration dns" ./... # 32bit tests
 
 
 addons:
 addons:
   hosts:
   hosts:

+ 3 - 0
client/client_dns_test.go

@@ -5,7 +5,10 @@ package client
 import (
 import (
 	"encoding/hex"
 	"encoding/hex"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
+	"gopkg.in/jcmturner/gokrb5.v3/config"
 	"gopkg.in/jcmturner/gokrb5.v3/keytab"
 	"gopkg.in/jcmturner/gokrb5.v3/keytab"
+	"gopkg.in/jcmturner/gokrb5.v3/testdata"
+	"testing"
 )
 )
 
 
 func TestResolveKDC(t *testing.T) {
 func TestResolveKDC(t *testing.T) {