Extend abci-cli to allow integration tests

This commit adds the basic test command 'abci-cli test' that will
allow developers of server for their own language to continuously test
their implementation.
This commit is contained in:
Adrian Brink
2017-05-04 11:29:25 +02:00
committed by Krzysztof Jurewicz
parent 48413b4839
commit e99e6ea0c7
6 changed files with 201 additions and 3 deletions

View File

@ -48,7 +48,6 @@ func (cli *grpcClient) OnStart() error {
return err
}
RETRY_LOOP:
for {
conn, err := grpc.Dial(cli.addr, grpc.WithInsecure(), grpc.WithDialer(dialerFunc))
if err != nil {
@ -83,8 +82,8 @@ func (cli *grpcClient) OnStop() {
cli.mtx.Lock()
defer cli.mtx.Unlock()
// TODO: how to close conn? its not a net.Conn and grpc doesn't expose a Close()
/*if cli.conn != nil {
cli.conn.Close()
/*if cli.client.conn != nil {
cli.client.conn.Close()
}*/
}