fix TestNetworkNewBlock

This commit is contained in:
Anton Kaliaev 2019-07-29 12:11:52 +04:00
parent 58c84a209f
commit 9b2ed9932d
No known key found for this signature in database
GPG Key ID: 7B6881D965918214

View File

@ -13,7 +13,9 @@ import (
func TestNetworkNewBlock(t *testing.T) {
n := monitor.NewNetwork()
n.NewBlock(tmtypes.Header{Height: 5})
n.NewBlock(tmtypes.Block{
Header: tmtypes.Header{Height: 5},
})
assert.Equal(t, int64(5), n.Height)
assert.Equal(t, 0.0, n.AvgBlockTime)
assert.Equal(t, 0.0, n.AvgTxThroughput)