Skip to content

Commit

Permalink
Move to latest supported go versions
Browse files Browse the repository at this point in the history
Go 1.14 is the minimum supported version currently,
so fix Travis CI to test against that.
  • Loading branch information
mrodden committed Oct 16, 2020
1 parent d2c4d08 commit 895efc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: go
dist: xenial

go:
- 1.13.x
- 1.12.x
- 1.14.x
- 1.15.x

env:
- GO111MODULE=on
Expand Down
6 changes: 5 additions & 1 deletion kp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ func TestKeys(t *testing.T) {
c := NewTestClientConfig()
c.BaseURL = ":"
_, err = NewWithLogger(c, nil, l)
assert.EqualError(t, err, "parse :/api/v2/: missing protocol scheme")

// assert that we got a url.Error while parsing the bad BaseURL
assert.Error(t, err)
assert.IsType(t, &url.Error{}, err)
assert.Equal(t, err.(*url.Error).Op, "parse")

return nil
},
Expand Down

0 comments on commit 895efc5

Please sign in to comment.