mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
int64 height
uint64 is considered dangerous. the details will follow in a blog post.
This commit is contained in:
@ -53,7 +53,7 @@ func TestBlockEvents(t *testing.T) {
|
||||
}
|
||||
|
||||
// listen for a new block; ensure height increases by 1
|
||||
var firstBlockHeight uint64
|
||||
var firstBlockHeight int64
|
||||
for j := 0; j < 3; j++ {
|
||||
evtTyp := types.EventNewBlock
|
||||
evt, err := client.WaitForOneEvent(c, evtTyp, waitForEventTimeout)
|
||||
@ -67,7 +67,7 @@ func TestBlockEvents(t *testing.T) {
|
||||
continue
|
||||
}
|
||||
|
||||
require.Equal(block.Header.Height, firstBlockHeight+uint64(j))
|
||||
require.Equal(block.Header.Height, firstBlockHeight+int64(j))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user