From 56054b0ad3903c7750d65e9f8a7ec0c3a4c51619 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 27 Jan 2021 12:54:56 -0800 Subject: [PATCH] sort pre-migrations --- chain/stmgr/forks_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 }, }}},