Skip to content

Commit

Permalink
Update Client and date. (#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
abuiles authored Feb 24, 2020
1 parent 55db4ab commit 4e70d6a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/horizonclient/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ file. This project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

## [v2.1.0](https://github.com/stellar/go/releases/tag/horizonclient-v2.1.0) - 2020-02-21
## [v2.1.0](https://github.com/stellar/go/releases/tag/horizonclient-v2.1.0) - 2020-02-24

### Add

Expand Down
10 changes: 10 additions & 0 deletions clients/horizonclient/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,16 @@ func TestFetchTimebounds(t *testing.T) {
assert.Equal(t, st.MaxTime, int64(200))
}

func TestVersion(t *testing.T) {
hmock := httptest.NewClient()
client := &Client{
HorizonURL: "https://localhost/",
HTTP: hmock,
}

assert.Equal(t, "2.1.0", client.Version())
}

var accountsResponse = `{
"_links": {
"self": {
Expand Down
2 changes: 1 addition & 1 deletion clients/horizonclient/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package horizonclient

// version is the current version of the horizonclient.
// This is updated for every release.
const version = "1.4"
const version = "2.1.0"

0 comments on commit 4e70d6a

Please sign in to comment.