Skip to content

Commit

Permalink
Hotfix for GetURL renaming that broke tests (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipstanislaus authored and pstehlik committed Sep 19, 2019
1 parent 9c9bcb4 commit 36de8c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ type Client interface {
Subscribe(ctx context.Context, namespace string, channel interface{}, args ...interface{}) (
*rpc.ClientSubscription, error)

GetURL() string
URL() string
//MetaData(cache bool) (*MetadataVersioned, error)
}

type client struct {
*rpc.Client

URL string
url string

// metadataVersioned is the metadata cache to prevent unnecessary requests
//metadataVersioned *MetadataVersioned
Expand All @@ -48,7 +48,7 @@ type client struct {

// Returns the URL the client connects to
func (c client) URL() string {
return c.URL
return c.url
}

// TODO move to State struct
Expand Down
2 changes: 1 addition & 1 deletion teste2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ func TestGetBlockHashAndVersion(t *testing.T) {
assert.NoError(t, err)

fmt.Printf("Connected to node %v | latest block hash: %v | authoringVersion: %v | specVersion: %v | "+
"implVersion: %v\n", (*api.Client).GetURL(), hash.Hex(), runtimeVersion.AuthoringVersion,
"implVersion: %v\n", (*api.Client).URL(), hash.Hex(), runtimeVersion.AuthoringVersion,
runtimeVersion.SpecVersion, runtimeVersion.ImplVersion)
}

0 comments on commit 36de8c8

Please sign in to comment.