From 9c4e2e5395423baa5c5e89d6b35461da67426f12 Mon Sep 17 00:00:00 2001 From: Yuri Surbashev Date: Tue, 3 Sep 2024 17:53:47 +0800 Subject: [PATCH] test: fix test utils for staking --- x/staking/keeper/util_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/staking/keeper/util_test.go b/x/staking/keeper/util_test.go index 0ba8b0fa..0ae774d5 100644 --- a/x/staking/keeper/util_test.go +++ b/x/staking/keeper/util_test.go @@ -2,7 +2,6 @@ package keeper_test import ( "errors" - "time" sdk "github.com/cosmos/cosmos-sdk/types" @@ -34,7 +33,7 @@ func setupClawbackVestingAccount(ctx sdk.Context, nw *network.UnitTestNetwork, v msgConv := types.NewMsgConvertIntoVestingAccount( funderAcc, vestingAcc, - time.Now(), + ctx.BlockTime(), testutil.TestVestingSchedule.LockupPeriods, testutil.TestVestingSchedule.VestingPeriods, true, false, nil,