From 0ac0cb62352205119ea58f4c57b6008c6b24fdd2 Mon Sep 17 00:00:00 2001 From: Sai Kumar Date: Thu, 27 Jul 2023 20:40:36 +0530 Subject: [PATCH] fix the tests --- app/inflation/mocks/keepers.go | 5 ++--- x/ugov/keeper/keeper_interfaces.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/inflation/mocks/keepers.go b/app/inflation/mocks/keepers.go index 95256e5357..4ac3d65b18 100644 --- a/app/inflation/mocks/keepers.go +++ b/app/inflation/mocks/keepers.go @@ -117,12 +117,11 @@ func (mr *MockUGovKeeperMockRecorder) ExportGenesis() *gomock.Call { } // GetInflationCycleEnd mocks base method. -func (m *MockUGovKeeper) GetInflationCycleEnd() (time.Time, error) { +func (m *MockUGovKeeper) GetInflationCycleEnd() time.Time { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetInflationCycleEnd") ret0, _ := ret[0].(time.Time) - ret1, _ := ret[1].(error) - return ret0, ret1 + return ret0 } // GetInflationCycleEnd indicates an expected call of GetInflationCycleEnd. diff --git a/x/ugov/keeper/keeper_interfaces.go b/x/ugov/keeper/keeper_interfaces.go index f5ee937ce8..b539933041 100644 --- a/x/ugov/keeper/keeper_interfaces.go +++ b/x/ugov/keeper/keeper_interfaces.go @@ -25,7 +25,7 @@ type IParams interface { SetInflationParams(lp ugov.InflationParams) error InflationParams() ugov.InflationParams SetInflationCycleEnd(startTime time.Time) error - GetInflationCycleEnd() (time.Time, error) + GetInflationCycleEnd() time.Time } var _ IKeeper = Keeper{}