switch to TestFullNode#WaitTillChain.
This commit is contained in:
parent
21848054d7
commit
2548c224c7
@ -69,8 +69,8 @@ func testWindowPostUpgrade(t *testing.T, blocktime time.Duration, nSectors int,
|
|||||||
waitUntil := di.PeriodStart + di.WPoStProvingPeriod + 2
|
waitUntil := di.PeriodStart + di.WPoStProvingPeriod + 2
|
||||||
t.Logf("End for head.Height > %d", waitUntil)
|
t.Logf("End for head.Height > %d", waitUntil)
|
||||||
|
|
||||||
height := kit2.WaitTillChainHeight(ctx, t, client, blocktime, int(waitUntil))
|
ts := client.WaitTillChain(ctx, kit2.HeightAtLeast(waitUntil))
|
||||||
t.Logf("Now head.Height = %d", height)
|
t.Logf("Now head.Height = %d", ts.Height())
|
||||||
|
|
||||||
p, err := client.StateMinerPower(ctx, maddr, types.EmptyTSK)
|
p, err := client.StateMinerPower(ctx, maddr, types.EmptyTSK)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user