From aa51fddaca02376ddedd71b677d4ce15df5bc73c Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 13 Jun 2018 18:33:09 -0700 Subject: [PATCH 1/2] add comments --- tests/util.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/util.go b/tests/util.go index c47d9907f..387ccb769 100644 --- a/tests/util.go +++ b/tests/util.go @@ -12,6 +12,8 @@ import ( rpcclient "github.com/tendermint/tendermint/rpc/lib/client" ) +// Wait for the next tendermint block from the Tendermint RPC +// on localhost func WaitForNextHeightTM(port string) { url := fmt.Sprintf("http://localhost:%v", port) cl := tmclient.NewHTTP(url, "/websocket") @@ -22,6 +24,8 @@ func WaitForNextHeightTM(port string) { waitForHeightTM(resBlock.Block.Height+1, url) } +// Wait for the given height from the Tendermint RPC +// on localhost func WaitForHeightTM(height int64, port string) { url := fmt.Sprintf("http://localhost:%v", port) waitForHeightTM(height, url) @@ -54,7 +58,7 @@ func waitForHeightTM(height int64, url string) { } } -// Uses localhost +// Wait for height from the LCD API on localhost func WaitForHeight(height int64, port string) { url := fmt.Sprintf("http://localhost:%v/blocks/latest", port) waitForHeight(height, url) From 3c10b54ec7a1efe305297609c335db2acb3a32b5 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Sat, 16 Jun 2018 00:02:20 -0700 Subject: [PATCH 2/2] fix circle --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ceb9e78a8..6aa166229 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2 defaults: &defaults working_directory: /go/src/github.com/cosmos/cosmos-sdk docker: - - image: circleci/golang:1.10.0 + - image: circleci/golang:1.10.3 environment: GOBIN: /tmp/workspace/bin