Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Apr 9, 2024
1 parent 1c6d5ae commit 16791be
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions x/data/client/testsuite/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/testutil"

"github.com/regen-network/regen-ledger/types/v2/testutil/cli"

"github.com/regen-network/regen-ledger/x/data/v2"
"github.com/regen-network/regen-ledger/x/data/v2/client"
)
Expand Down Expand Up @@ -593,9 +594,8 @@ func (s *IntegrationTestSuite) TestConvertIRIToHashCmd() {
} else {
require.NoError(err)

var res data.ConvertIRIToHashResponse
var res data.ContentHash
require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res))
require.NotEmpty(res.ContentHash)
}
})
}
Expand Down Expand Up @@ -650,10 +650,6 @@ func (s *IntegrationTestSuite) TestConvertHashToIRICmd() {
require.Contains(out.String(), tc.expErrMsg)
} else {
require.NoError(err)

var res data.ConvertHashToIRIResponse
require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res))
require.NotEmpty(res.Iri)
}
})
}
Expand Down

0 comments on commit 16791be

Please sign in to comment.