mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-08 02:51:20 +00:00
fix TestNetworkNewBlock
This commit is contained in:
parent
58c84a209f
commit
9b2ed9932d
@ -13,7 +13,9 @@ import (
|
|||||||
func TestNetworkNewBlock(t *testing.T) {
|
func TestNetworkNewBlock(t *testing.T) {
|
||||||
n := monitor.NewNetwork()
|
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, int64(5), n.Height)
|
||||||
assert.Equal(t, 0.0, n.AvgBlockTime)
|
assert.Equal(t, 0.0, n.AvgBlockTime)
|
||||||
assert.Equal(t, 0.0, n.AvgTxThroughput)
|
assert.Equal(t, 0.0, n.AvgTxThroughput)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user