Browse Source

Merge pull request #3342 from xiang90/travis

travis: test for go 1.5 build
Xiang Li 10 years ago
parent
commit
84b614c508
2 changed files with 3 additions and 2 deletions
  1. 1 0
      .travis.yml
  2. 2 2
      client/keys_test.go

+ 1 - 0
.travis.yml

@@ -2,6 +2,7 @@ language: go
 sudo: false
 sudo: false
 go:
 go:
   - 1.4
   - 1.4
+  - 1.5
 
 
 install:
 install:
  - go get github.com/barakmich/go-nyet
  - go get github.com/barakmich/go-nyet

+ 2 - 2
client/keys_test.go

@@ -105,7 +105,7 @@ func TestV2KeysURLHelper(t *testing.T) {
 }
 }
 
 
 func TestGetAction(t *testing.T) {
 func TestGetAction(t *testing.T) {
-	ep := url.URL{Scheme: "http", Host: "example.com/v2/keys"}
+	ep := url.URL{Scheme: "http", Host: "example.com", Path: "/v2/keys"}
 	baseWantURL := &url.URL{
 	baseWantURL := &url.URL{
 		Scheme: "http",
 		Scheme: "http",
 		Host:   "example.com",
 		Host:   "example.com",
@@ -171,7 +171,7 @@ func TestGetAction(t *testing.T) {
 }
 }
 
 
 func TestWaitAction(t *testing.T) {
 func TestWaitAction(t *testing.T) {
-	ep := url.URL{Scheme: "http", Host: "example.com/v2/keys"}
+	ep := url.URL{Scheme: "http", Host: "example.com", Path: "/v2/keys"}
 	baseWantURL := &url.URL{
 	baseWantURL := &url.URL{
 		Scheme: "http",
 		Scheme: "http",
 		Host:   "example.com",
 		Host:   "example.com",