From 7c39cab4a9e2486ec4e77eeaec3e6dad2e802fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20Axn=C3=A9r?= <25233464+colin-axner@users.noreply.github.com> Date: Thu, 13 Jan 2022 14:07:39 +0100 Subject: [PATCH] fix test case --- modules/apps/27-interchain-accounts/controller/keeper/relay.go | 2 +- .../apps/27-interchain-accounts/controller/keeper/relay_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/apps/27-interchain-accounts/controller/keeper/relay.go b/modules/apps/27-interchain-accounts/controller/keeper/relay.go index 896b737f0c3..ab62e5c2249 100644 --- a/modules/apps/27-interchain-accounts/controller/keeper/relay.go +++ b/modules/apps/27-interchain-accounts/controller/keeper/relay.go @@ -29,7 +29,7 @@ func (k Keeper) TrySendTx(ctx sdk.Context, chanCap *capabilitytypes.Capability, destinationPort := sourceChannelEnd.GetCounterparty().GetPortID() destinationChannel := sourceChannelEnd.GetCounterparty().GetChannelID() - if uint64(ctx.BlockTime().UnixNano()) > timeoutTimestamp { + if uint64(ctx.BlockTime().UnixNano()) >= timeoutTimestamp { return 0, icatypes.ErrInvalidTimeoutTimestamp } diff --git a/modules/apps/27-interchain-accounts/controller/keeper/relay_test.go b/modules/apps/27-interchain-accounts/controller/keeper/relay_test.go index e9826f3b482..4601e16ff48 100644 --- a/modules/apps/27-interchain-accounts/controller/keeper/relay_test.go +++ b/modules/apps/27-interchain-accounts/controller/keeper/relay_test.go @@ -137,7 +137,7 @@ func (suite *KeeperTestSuite) TestTrySendTx() { timeoutTimestamp = uint64(suite.chainA.GetContext().BlockTime().UnixNano()) }, - true, + false, }, }