Skip to content

Commit

Permalink
checking for expected sycning response + setting uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
faboweb committed Mar 14, 2018
1 parent 8e9e73c commit 903649d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/lcd/lcd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ func TestNodeStatus(t *testing.T) {
res, body = request(t, port, "GET", "/syncing", nil)
require.Equal(t, http.StatusOK, res.StatusCode, body)

assert.Equal(t, "true", body)
// we expect that there is no other node running so the syncing state is "false"
// we c
assert.Equal(t, "false", body)
}

func TestBlock(t *testing.T) {
Expand Down Expand Up @@ -204,8 +206,8 @@ func TestCoinSend(t *testing.T) {
time.Sleep(time.Second * 2) // T

// check if tx was commited
assert.Equal(t, 0, resultTx.CheckTx.Code)
assert.Equal(t, 0, resultTx.DeliverTx.Code)
assert.Equal(t, uint32(0), resultTx.CheckTx.Code)
assert.Equal(t, uint32(0), resultTx.DeliverTx.Code)

// query sender
res, body = request(t, port, "GET", "/accounts/"+addr, nil)
Expand Down

0 comments on commit 903649d

Please sign in to comment.