Remove spurious commits

This commit is contained in:
Jae Kwon 2017-01-15 15:31:26 -08:00
parent c0e153d103
commit 16ccf8c6d7
1 changed files with 4 additions and 14 deletions

View File

@ -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)