Skip to content

Commit

Permalink
fix tests in 08-wasm keeper_test
Browse files Browse the repository at this point in the history
  • Loading branch information
likesToEatFish committed Dec 11, 2024
1 parent f02fcbc commit 41c69da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/light-clients/08-wasm/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ func (suite *KeeperTestSuite) TestInitializedPinnedCodes() {

err := wasmClientKeeper.InitializePinnedCodes(ctx)

expPass := tc.expError == nil
if expPass {
if tc.expError == nil {
suite.Require().NoError(err)
suite.ElementsMatch(checksumIDs, capturedChecksums)
} else {
Expand Down Expand Up @@ -432,8 +431,7 @@ func (suite *KeeperTestSuite) TestMigrateContract() {
clientState, ok = endpointA.GetClientState().(*types.ClientState)
suite.Require().True(ok)

expPass := tc.expErr == nil
if expPass {
if tc.expErr == nil {
suite.Require().NoError(err)
suite.Require().Equal(expClientState, clientState)
} else {
Expand Down

0 comments on commit 41c69da

Please sign in to comment.