diff --git a/migrations/migration_test.go b/migrations/migration_test.go index 84294b1fcd..2efa95efbc 100644 --- a/migrations/migration_test.go +++ b/migrations/migration_test.go @@ -643,19 +643,16 @@ func TestMigrationError(t *testing.T) { err = migration.Commit() require.NoError(t, err) - assert.Equal(t, - map[struct { - interpreter.StorageKey - interpreter.StorageMapKey - }][]error{ - { + require.Equal(t, + []error{ + StorageMigrationError{ StorageKey: interpreter.StorageKey{ Address: account, Key: pathDomain.Identifier(), }, StorageMapKey: interpreter.StringStorageMapKey("int8_value"), - }: { - errors.New("error occurred while migrating int8"), + Migration: "testInt8Migration", + Err: errors.New("error occurred while migrating int8"), }, }, reporter.errors, @@ -701,21 +698,6 @@ func TestMigrationError(t *testing.T) { }, reporter.migrated, ) - - require.Equal(t, - []error{ - StorageMigrationError{ - StorageKey: interpreter.StorageKey{ - Address: account, - Key: pathDomain.Identifier(), - }, - StorageMapKey: interpreter.StringStorageMapKey("int8_value"), - Migration: "testInt8Migration", - Err: errors.New("error occurred while migrating int8"), - }, - }, - reporter.errors, - ) } func TestCapConMigration(t *testing.T) {