From 2aad8cbffc8094661d1f64aa6e873a6acd52f440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Fri, 27 Sep 2024 09:55:57 -0700 Subject: [PATCH] skip test, clean up --- .../fix_authorizations_migration_test.go | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/cmd/util/ledger/migrations/fix_authorizations_migration_test.go b/cmd/util/ledger/migrations/fix_authorizations_migration_test.go index 37c2c06fb7f..4ce19cff745 100644 --- a/cmd/util/ledger/migrations/fix_authorizations_migration_test.go +++ b/cmd/util/ledger/migrations/fix_authorizations_migration_test.go @@ -9,7 +9,6 @@ import ( jsoncdc "github.com/onflow/cadence/encoding/json" "github.com/onflow/cadence/runtime/common" "github.com/onflow/cadence/runtime/interpreter" - "github.com/onflow/cadence/runtime/sema" "github.com/rs/zerolog" "github.com/stretchr/testify/require" @@ -17,23 +16,14 @@ import ( "github.com/onflow/flow-go/model/flow" ) -func newEntitlementSetAuthorizationFromTypeIDs( - typeIDs []common.TypeID, - setKind sema.EntitlementSetKind, -) interpreter.EntitlementSetAuthorization { - return interpreter.NewEntitlementSetAuthorization( - nil, - func() []common.TypeID { - return typeIDs - }, - len(typeIDs), - setKind, - ) -} - func TestFixAuthorizationsMigration(t *testing.T) { t.Parallel() + // This test no longer works because publishing authorized capabilities is no longer allowed. + // The migration and test are kept for historical reasons. + + t.Skip() + const chainID = flow.Emulator chain := chainID.Chain()