Test that we reverted activation bug fix
This commit is contained in:
parent
885153fcfa
commit
d45ee8dc54
@ -68,12 +68,13 @@ func runTestCCUpgrade(t *testing.T) *kit.TestFullNode {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Len(t, sl, 1, "expected 1 sector")
|
require.Len(t, sl, 1, "expected 1 sector")
|
||||||
require.Equal(t, CCUpgrade, sl[0], "unexpected sector number")
|
require.Equal(t, CCUpgrade, sl[0], "unexpected sector number")
|
||||||
{
|
|
||||||
si, err := client.StateSectorGetInfo(ctx, maddr, CCUpgrade, types.EmptyTSK)
|
si, err := client.StateSectorGetInfo(ctx, maddr, CCUpgrade, types.EmptyTSK)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.NotNil(t, si)
|
require.NotNil(t, si)
|
||||||
require.Less(t, 50000, int(si.Expiration))
|
require.Less(t, 50000, int(si.Expiration))
|
||||||
}
|
require.True(t, si.ReplacedSectorAge == 0)
|
||||||
|
|
||||||
client.WaitForSectorActive(ctx, t, CCUpgrade, maddr)
|
client.WaitForSectorActive(ctx, t, CCUpgrade, maddr)
|
||||||
|
|
||||||
//stm: @SECTOR_CC_UPGRADE_001
|
//stm: @SECTOR_CC_UPGRADE_001
|
||||||
@ -100,6 +101,12 @@ func runTestCCUpgrade(t *testing.T) *kit.TestFullNode {
|
|||||||
CCUpgrade: {},
|
CCUpgrade: {},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
siUpdate, err := client.StateSectorGetInfo(ctx, maddr, CCUpgrade, types.EmptyTSK)
|
||||||
|
require.NoError(t, err)
|
||||||
|
require.NotNil(t, siUpdate)
|
||||||
|
require.True(t, siUpdate.SectorKeyCID != nil)
|
||||||
|
require.True(t, siUpdate.Activation > si.Activation)
|
||||||
|
|
||||||
return client
|
return client
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user