diff --git a/chain/stmgr/forks_test.go b/chain/stmgr/forks_test.go index 92cc33349..e259db3b0 100644 --- a/chain/stmgr/forks_test.go +++ b/chain/stmgr/forks_test.go @@ -413,15 +413,6 @@ func TestForkPreMigration(t *testing.T) { // Fail this migration. The cached entry should not be persisted. return fmt.Errorf("failed") }, - }, { - When: 10, - PreMigration: func(ctx context.Context, _ *StateManager, cache MigrationCache, - _ cid.Cid, _ abi.ChainEpoch, _ *types.TipSet) error { - - checkCache(t, cache) - - return nil - }, }, { When: 15, NotAfter: 5, @@ -431,6 +422,15 @@ func TestForkPreMigration(t *testing.T) { <-ctx.Done() close(wasCanceled) + return nil + }, + }, { + When: 10, + PreMigration: func(ctx context.Context, _ *StateManager, cache MigrationCache, + _ cid.Cid, _ abi.ChainEpoch, _ *types.TipSet) error { + + checkCache(t, cache) + return nil }, }}},