From d79473d1abac9782aed820ef1f20b61112090c39 Mon Sep 17 00:00:00 2001 From: Adrian Brink Date: Mon, 26 Feb 2018 11:59:48 +0100 Subject: [PATCH] Go through all tests --- baseapp/baseapp_test.go | 2 ++ x/bank/tx_test.go | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/baseapp/baseapp_test.go b/baseapp/baseapp_test.go index 0467233b92..d228d2761e 100644 --- a/baseapp/baseapp_test.go +++ b/baseapp/baseapp_test.go @@ -48,6 +48,7 @@ func TestMountStores(t *testing.T) { err = app.LoadLatestVersion(capKey2) assert.Nil(t, err) } + // Test that we can make commits and then reload old versions. // Test that LoadLatestVersion actually does. func TestLoadVersion(t *testing.T) { @@ -71,6 +72,7 @@ func TestInfo(t *testing.T) { // should be empty assert.Equal(t, "", res.Version) + assert.Equal(t, t.Name(), res.GetData()) assert.Equal(t, int64(0), res.LastBlockHeight) assert.Equal(t, []uint8(nil), res.LastBlockAppHash) diff --git a/x/bank/tx_test.go b/x/bank/tx_test.go index 6cff82da8c..2bc0458b25 100644 --- a/x/bank/tx_test.go +++ b/x/bank/tx_test.go @@ -122,7 +122,6 @@ func TestOutputValidation(t *testing.T) { } func TestSendMsgValidation(t *testing.T) { - addr1 := crypto.Address([]byte{1, 2}) addr2 := crypto.Address([]byte{7, 8}) atom123 := sdk.Coins{{"atom", 123}}