sort pre-migrations

This commit is contained in:
Steven Allen 2021-01-27 12:54:56 -08:00
parent 854385168d
commit 56054b0ad3

View File

@ -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
},
}}},