From 2dea46779c562d6af21bedd62866aed9c8813569 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Fri, 24 Aug 2018 07:37:41 +0100 Subject: [PATCH] TestCoinSend: test success case when setting gas by hand --- client/lcd/lcd_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/lcd/lcd_test.go b/client/lcd/lcd_test.go index 2db2f6d618..67d8708832 100644 --- a/client/lcd/lcd_test.go +++ b/client/lcd/lcd_test.go @@ -267,6 +267,10 @@ func TestCoinSend(t *testing.T) { // test failure with too little gas res, body, _ = doSendWithGas(t, port, seed, name, password, addr, 100) require.Equal(t, http.StatusInternalServerError, res.StatusCode, body) + + // test success with just enough gas + res, body, _ = doSendWithGas(t, port, seed, name, password, addr, 3000) + require.Equal(t, http.StatusOK, res.StatusCode, body) } func TestIBCTransfer(t *testing.T) {