test info
This commit is contained in:
parent
c9d36cd713
commit
5ea3f24304
|
@ -1,6 +1,7 @@
|
||||||
package client_test
|
package client_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"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
|
// Make some app checks
|
||||||
func TestAppCalls(t *testing.T) {
|
func TestAppCalls(t *testing.T) {
|
||||||
assert, require := assert.New(t), require.New(t)
|
assert, require := assert.New(t), require.New(t)
|
||||||
|
|
Loading…
Reference in New Issue