From c3cc5375be4638adb39c013dd60ccb194bb4e00f Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 17 May 2016 22:45:45 -0400 Subject: [PATCH] ignore mustConnect for now. fix test_counter --- client/remote_client.go | 1 + tests/test_counter.go | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client/remote_client.go b/client/remote_client.go index d8370eeef..aa8a4aea5 100644 --- a/client/remote_client.go +++ b/client/remote_client.go @@ -54,6 +54,7 @@ func NewClient(addr string, mustConnect bool) (*remoteClient, error) { } cli.QuitService = *NewQuitService(nil, "remoteClient", cli) _, err := cli.Start() // Just start it, it's confusing for callers to remember to start. + return cli, err if mustConnect { return nil, err } else { diff --git a/tests/test_counter.go b/tests/test_counter.go index 44adc3207..2d60543e1 100644 --- a/tests/test_counter.go +++ b/tests/test_counter.go @@ -100,9 +100,6 @@ func commit(client tmspcli.Client, hashExp []byte) { func appendTx(client tmspcli.Client, txBytes []byte, codeExp types.CodeType, dataExp []byte) { res := client.AppendTxSync(txBytes) code, data, log := res.Code, res.Data, res.Log - if res.IsErr() { - panic(Fmt("appending tx %X: %v\nlog: %v", txBytes, log)) - } if code != codeExp { panic(Fmt("AppendTx response code was unexpected. Got %v expected %v. Log: %v", code, codeExp, log))