Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockwarr committed Oct 1, 2024
1 parent b0f58e6 commit 29afe0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/mint/client/testutil/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ func (s *IntegrationTestSuite) TestGetCmdQueryMintState() {
{
"json output",
[]string{fmt.Sprintf("--%s=1", flags.FlagHeight), fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
`{"norm_time_passed":"17.0000000000000000","total_minted":"0"}`,
`{"norm_time_passed":"0.000000000000000000","total_minted":"0"}`,
},
{
"text output",
[]string{fmt.Sprintf("--%s=1", flags.FlagHeight), fmt.Sprintf("--%s=text", tmcli.OutputFlag)},
`norm_time_passed: "17.0000000000000000"
`norm_time_passed: "0.000000000000000000"
total_minted: "0"`,
},
}
Expand Down
2 changes: 1 addition & 1 deletion x/mint/simulation/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestRandomizedGenState(t *testing.T) {

require.Equal(t, sdkmath.NewUint(uint64(time.Second.Nanoseconds()*13)), mintGenesis.Params.MaxMintableNanoseconds)
require.Equal(t, "0", mintGenesis.Minter.TotalMinted.String())
require.Equal(t, "17.000000000000000000", mintGenesis.Minter.NormTimePassed.String())
require.Equal(t, "0.000000000000000000", mintGenesis.Minter.NormTimePassed.String())
require.Equal(t, sdkmath.ZeroUint(), mintGenesis.Minter.PrevBlockTimestamp)
}

Expand Down

0 comments on commit 29afe0e

Please sign in to comment.