ignore mustConnect for now. fix test_counter

This commit is contained in:
Ethan Buchman 2016-05-17 22:45:45 -04:00
parent 5dc7bee57b
commit c3cc5375be
2 changed files with 1 additions and 3 deletions

View File

@ -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 {

View File

@ -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))