mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-09 22:47:24 +00:00
test info
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package client_test
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -21,6 +22,17 @@ func TestStatus(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure info is correct (we connect properly)
|
||||
func TestInfo(t *testing.T) {
|
||||
c := rpctest.GetClient()
|
||||
status, err := c.Status()
|
||||
require.Nil(t, err)
|
||||
info, err := c.ABCIInfo()
|
||||
require.Nil(t, err)
|
||||
assert.EqualValues(t, status.LatestBlockHeight, info.Response.LastBlockHeight)
|
||||
assert.True(t, strings.HasPrefix(info.Response.Data, "size:"))
|
||||
}
|
||||
|
||||
// Make some app checks
|
||||
func TestAppCalls(t *testing.T) {
|
||||
assert, require := assert.New(t), require.New(t)
|
||||
|
||||
Reference in New Issue
Block a user