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.
|
// Fail this migration. The cached entry should not be persisted.
|
||||||
return fmt.Errorf("failed")
|
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,
|
When: 15,
|
||||||
NotAfter: 5,
|
NotAfter: 5,
|
||||||
@ -431,6 +422,15 @@ func TestForkPreMigration(t *testing.T) {
|
|||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
close(wasCanceled)
|
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
|
return nil
|
||||||
},
|
},
|
||||||
}}},
|
}}},
|
||||||
|
Loading…
Reference in New Issue
Block a user