Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed Jan 13, 2022
1 parent de9aa19 commit 7c39cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (suite *KeeperTestSuite) TestTrySendTx() {

timeoutTimestamp = uint64(suite.chainA.GetContext().BlockTime().UnixNano())
},
true,
false,
},
}

Expand Down

0 comments on commit 7c39cab

Please sign in to comment.