test a few more cases

This commit is contained in:
Jeromy 2020-06-10 22:17:29 -07:00
parent 295c0861c4
commit 1aff04faab

View File

@ -68,9 +68,11 @@ func TestIndexSeeks(t *testing.T) {
}
assert.Equal(t, abi.ChainEpoch(151), ts.Height())
ts2, err := cs.GetTipsetByHeight(ctx, 90, skipts, false)
for i := 0; i <= 100; i++ {
ts3, err := cs.GetTipsetByHeight(ctx, abi.ChainEpoch(i), skipts, false)
if err != nil {
t.Fatal(err)
}
assert.Equal(t, abi.ChainEpoch(90), ts2.Height())
assert.Equal(t, abi.ChainEpoch(i), ts3.Height())
}
}