sort pre-migrations
This commit is contained in:
parent
854385168d
commit
56054b0ad3
@ -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
|
||||
},
|
||||
}}},
|
||||
|
Loading…
Reference in New Issue
Block a user