Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
imp: updated e2es
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Jul 18, 2024
1 parent 51b58ce commit 6fc6266
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions e2e/interchaintestv8/sp1_ics07_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@ func (s *SP1ICS07TendermintTestSuite) TestDeploy() {
clientState, err := s.contract.GetClientState(nil)
s.Require().NoError(err)

stakingParams, err := simd.StakingQueryParams(ctx)
s.Require().NoError(err)

s.Require().Equal(simd.Config().ChainID, clientState.ChainId)
s.Require().Equal(uint8(testvalues.DefaultTrustLevel.Numerator), clientState.TrustLevel.Numerator)
s.Require().Equal(uint8(testvalues.DefaultTrustLevel.Denominator), clientState.TrustLevel.Denominator)
s.Require().Equal(uint32(1_209_600), clientState.TrustingPeriod)
s.Require().Equal(uint32(1_209_600), clientState.UnbondingPeriod)
s.Require().Equal(uint32(stakingParams.UnbondingTime.Seconds()), clientState.TrustingPeriod)
s.Require().Equal(uint32(stakingParams.UnbondingTime.Seconds()), clientState.UnbondingPeriod)
s.Require().False(clientState.IsFrozen)
s.Require().Equal(uint32(1), clientState.LatestHeight.RevisionNumber)
s.Require().Greater(clientState.LatestHeight.RevisionHeight, uint32(0))
Expand All @@ -134,11 +137,14 @@ func (s *SP1ICS07TendermintTestSuite) TestUpdateClient() {
clientState, err := s.contract.GetClientState(nil)
s.Require().NoError(err)

stakingParams, err := simd.StakingQueryParams(ctx)
s.Require().NoError(err)

s.Require().Equal(simd.Config().ChainID, clientState.ChainId)
s.Require().Equal(uint8(testvalues.DefaultTrustLevel.Numerator), clientState.TrustLevel.Numerator)
s.Require().Equal(uint8(testvalues.DefaultTrustLevel.Denominator), clientState.TrustLevel.Denominator)
s.Require().Equal(uint32(1_209_600), clientState.TrustingPeriod)
s.Require().Equal(uint32(1_209_600), clientState.UnbondingPeriod)
s.Require().Equal(uint32(stakingParams.UnbondingTime.Seconds()), clientState.TrustingPeriod)
s.Require().Equal(uint32(stakingParams.UnbondingTime.Seconds()), clientState.UnbondingPeriod)
s.Require().False(clientState.IsFrozen)
s.Require().Equal(uint32(1), clientState.LatestHeight.RevisionNumber)
s.Require().Greater(clientState.LatestHeight.RevisionHeight, s.latestHeight)
Expand Down

0 comments on commit 6fc6266

Please sign in to comment.