From 231f6c3ead44967ddcd971968d82af949180c3c1 Mon Sep 17 00:00:00 2001 From: Ethan Date: Tue, 10 Dec 2019 15:51:59 -0500 Subject: [PATCH] Add old MKR check to runAllChecks --- packages/dai-plugin-migrations/src/MigrationService.js | 5 +++-- packages/dai-plugin-migrations/test/MigrationService.spec.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/dai-plugin-migrations/src/MigrationService.js b/packages/dai-plugin-migrations/src/MigrationService.js index fbb714161..92886ecc0 100644 --- a/packages/dai-plugin-migrations/src/MigrationService.js +++ b/packages/dai-plugin-migrations/src/MigrationService.js @@ -7,7 +7,7 @@ import GlobalSettlementDaiRedeemer from './migrations/GlobalSettlementDaiRedeeme import SaiToDai from './migrations/SaiToDai'; import MkrRedeemer from './migrations/MkrRedeemer'; import DaiToSai from './migrations/DaiToSai'; -const { SINGLE_TO_MULTI_CDP, SAI_TO_DAI, DAI_TO_SAI } = Migrations; +const { SINGLE_TO_MULTI_CDP, SAI_TO_DAI, DAI_TO_SAI, MKR_REDEEMER } = Migrations; const migrations = { [SINGLE_TO_MULTI_CDP]: SingleToMultiCdp, @@ -48,7 +48,8 @@ export default class MigrationService extends PublicService { SINGLE_TO_MULTI_CDP ).check(), [SAI_TO_DAI]: await this.getMigration(SAI_TO_DAI).check(), - [DAI_TO_SAI]: await this.getMigration(DAI_TO_SAI).check() + [DAI_TO_SAI]: await this.getMigration(DAI_TO_SAI).check(), + [MKR_REDEEMER]: await this.getMigration(MKR_REDEEMER).check() }; } diff --git a/packages/dai-plugin-migrations/test/MigrationService.spec.js b/packages/dai-plugin-migrations/test/MigrationService.spec.js index 222f48599..bf8d8b0f9 100644 --- a/packages/dai-plugin-migrations/test/MigrationService.spec.js +++ b/packages/dai-plugin-migrations/test/MigrationService.spec.js @@ -75,6 +75,7 @@ test('runAllChecks', async () => { expect(result).toEqual({ [Migrations.SAI_TO_DAI]: expect.anything(), [Migrations.DAI_TO_SAI]: expect.anything(), + [Migrations.MKR_REDEEMER]: expect.anything(), [Migrations.SINGLE_TO_MULTI_CDP]: {} }); expect(result[Migrations.SAI_TO_DAI].eq(0)).toBeTruthy();