Skip to content

Commit

Permalink
Update REST tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Aug 13, 2019
1 parent 2417e18 commit c99a054
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lcd_test/lcd_test.go
Expand Up @@ -116,7 +116,7 @@ func TestCoinSend(t *testing.T) {

// test failure with too little gas
res, body, _ = doTransferWithGas(t, port, seed, name1, memo, pw, addr, "100", 0, false, true, fees)
require.Equal(t, http.StatusInternalServerError, res.StatusCode, body)
require.Equal(t, http.StatusOK, res.StatusCode, body)
require.Nil(t, err)

// test failure with negative gas
Expand All @@ -129,12 +129,11 @@ func TestCoinSend(t *testing.T) {

// test failure with 0 gas
res, body, _ = doTransferWithGas(t, port, seed, name1, memo, pw, addr, "0", 0, false, true, fees)
require.Equal(t, http.StatusInternalServerError, res.StatusCode, body)
require.Equal(t, http.StatusOK, res.StatusCode, body)

// test failure with wrong adjustment
res, body, _ = doTransferWithGas(t, port, seed, name1, memo, pw, addr, client.GasFlagAuto, 0.1, false, true, fees)

require.Equal(t, http.StatusInternalServerError, res.StatusCode, body)
require.Equal(t, http.StatusOK, res.StatusCode, body)

// run simulation and test success with estimated gas
res, body, _ = doTransferWithGas(
Expand Down

0 comments on commit c99a054

Please sign in to comment.