mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
10
.travis.yml
10
.travis.yml
@@ -3,12 +3,10 @@ go:
|
|||||||
- 1.5
|
- 1.5
|
||||||
- 1.6
|
- 1.6
|
||||||
before_script:
|
before_script:
|
||||||
|
- curl -L https://github.com/coreos/etcd/releases/download/v2.3.1/etcd-v2.3.1-linux-amd64.tar.gz -o etcd-v2.3.1-linux-amd64.tar.gz
|
||||||
|
- tar xzvf etcd-v2.3.1-linux-amd64.tar.gz
|
||||||
|
- ./etcd-v2.3.1-linux-amd64/etcd &
|
||||||
- go get
|
- go get
|
||||||
- go get github.com/coreos/go-etcd/etcd
|
- go get github.com/coreos/go-etcd/etcd
|
||||||
# - go get github.com/coreos/etcd
|
|
||||||
#- go build -o $HOME/gopath/src/github.com/coreos/etcd/etcd.run github.com/coreos/etcd
|
|
||||||
#- $HOME/gopath/src/github.com/coreos/etcd/etcd.run &
|
|
||||||
#- sleep 2
|
|
||||||
script:
|
script:
|
||||||
#- go test -tags etcd -race -bench=. ./...
|
- go test -tags etcd -race -bench=. ./...
|
||||||
- go test -race -bench=. ./...
|
|
||||||
|
|||||||
@@ -20,8 +20,7 @@ func TestErrors(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handler := mid(EmptyNext)
|
handler := mid(EmptyNext)
|
||||||
myHandler, ok := handler.(*errors.ErrorHandler)
|
myHandler, ok := handler.(errors.ErrorHandler)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
t.Fatalf("Expected handler to be type ErrorHandler, got: %#v", handler)
|
t.Fatalf("Expected handler to be type ErrorHandler, got: %#v", handler)
|
||||||
}
|
}
|
||||||
@@ -35,15 +34,6 @@ func TestErrors(t *testing.T) {
|
|||||||
if !SameNext(myHandler.Next, EmptyNext) {
|
if !SameNext(myHandler.Next, EmptyNext) {
|
||||||
t.Error("'Next' field of handler was not set properly")
|
t.Error("'Next' field of handler was not set properly")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test Startup function
|
|
||||||
if len(c.Startup) == 0 {
|
|
||||||
t.Fatal("Expected 1 startup function, had 0")
|
|
||||||
}
|
|
||||||
err = c.Startup[0]()
|
|
||||||
if myHandler.Log == nil {
|
|
||||||
t.Error("Expected Log to be non-nil after startup because Debug is not enabled")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestErrorsParse(t *testing.T) {
|
func TestErrorsParse(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user