From 16ccf8c6d7c8f3f6fc33218614b620d8d0ed2119 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Sun, 15 Jan 2017 15:31:26 -0800 Subject: [PATCH] Remove spurious commits --- tests/tmsp/tmsp_test.go | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/tests/tmsp/tmsp_test.go b/tests/tmsp/tmsp_test.go index 941195ca0..a6a03686a 100644 --- a/tests/tmsp/tmsp_test.go +++ b/tests/tmsp/tmsp_test.go @@ -26,11 +26,6 @@ func TestSendTx(t *testing.T) { test1Acc.Balance = types.Coins{{"", 1000}} t.Log(bcApp.SetOption("base/account", string(wire.JSONBytes(test1Acc)))) - res := bcApp.Commit() - if res.IsErr() { - cmn.Exit(cmn.Fmt("Failed Commit: %v", res.Error())) - } - // Construct a SendTx signature tx := &types.SendTx{ Gas: 0, @@ -55,7 +50,7 @@ func TestSendTx(t *testing.T) { // Write request txBytes := wire.BinaryBytes(struct{ types.Tx }{tx}) - res = bcApp.DeliverTx(txBytes) + res := bcApp.DeliverTx(txBytes) t.Log(res) if res.IsErr() { t.Errorf("Failed: %v", res.Error()) @@ -75,11 +70,6 @@ func TestSequence(t *testing.T) { test1Acc.Balance = types.Coins{{"", 1 << 53}} t.Log(bcApp.SetOption("base/account", string(wire.JSONBytes(test1Acc)))) - res := bcApp.Commit() - if res.IsErr() { - t.Errorf("Failed Commit: %v", res.Error()) - } - sequence := int(1) // Make a bunch of PrivAccounts privAccounts := testutils.RandAccounts(1000, 1000000, 0) @@ -119,13 +109,13 @@ func TestSequence(t *testing.T) { } - t.Log("-------------------- RANDOM SENDS --------------------") - - res = bcApp.Commit() + res := bcApp.Commit() if res.IsErr() { t.Errorf("Failed Commit: %v", res.Error()) } + t.Log("-------------------- RANDOM SENDS --------------------") + // Now send coins between these accounts for i := 0; i < 10000; i++ { randA := cmn.RandInt() % len(privAccounts)