test a few more cases
This commit is contained in:
parent
14ea847ef6
commit
ac1048fcd7
@ -68,9 +68,11 @@ func TestIndexSeeks(t *testing.T) {
|
|||||||
}
|
}
|
||||||
assert.Equal(t, abi.ChainEpoch(151), ts.Height())
|
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 {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
assert.Equal(t, abi.ChainEpoch(90), ts2.Height())
|
assert.Equal(t, abi.ChainEpoch(i), ts3.Height())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user