Skip to content

Commit

Permalink
address rabit.
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitrisJim committed Mar 25, 2024
1 parent 482c97e commit 211c37a
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions modules/light-clients/08-wasm/light_client_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ func (suite *WasmTestSuite) TestStatus() {
malleate func()
expStatus exported.Status
}{
{
"success",
func() {},
exported.Active,
},
{
"client is active",
func() {},
Expand Down Expand Up @@ -132,27 +127,6 @@ func (suite *WasmTestSuite) TestTimestampAtHeight() {
malleate func()
expErr error
}{
{
"success",
func() {
suite.mockVM.RegisterQueryCallback(types.TimestampAtHeightMsg{}, func(_ wasmvm.Checksum, _ wasmvmtypes.Env, queryMsg []byte, _ wasmvm.KVStore, _ wasmvm.GoAPI, _ wasmvm.Querier, _ wasmvm.GasMeter, _ uint64, _ wasmvmtypes.UFraction) (*wasmvmtypes.QueryResult, uint64, error) {
var payload types.QueryMsg
err := json.Unmarshal(queryMsg, &payload)
suite.Require().NoError(err)

suite.Require().NotNil(payload.TimestampAtHeight)
suite.Require().Nil(payload.CheckForMisbehaviour)
suite.Require().Nil(payload.Status)
suite.Require().Nil(payload.VerifyClientMessage)

resp, err := json.Marshal(types.TimestampAtHeightResult{Timestamp: expectedTimestamp})
suite.Require().NoError(err)

return &wasmvmtypes.QueryResult{Ok: resp}, wasmtesting.DefaultGasUsed, nil
})
},
nil,
},
{
"success",
func() {
Expand Down Expand Up @@ -983,18 +957,6 @@ func (suite *WasmTestSuite) TestCheckForMisbehaviour() {
foundMisbehaviour bool
expPanic error
}{
{
"success: no misbehaviour",
func() {
suite.mockVM.RegisterQueryCallback(types.CheckForMisbehaviourMsg{}, func(_ wasmvm.Checksum, _ wasmvmtypes.Env, _ []byte, _ wasmvm.KVStore, _ wasmvm.GoAPI, _ wasmvm.Querier, _ wasmvm.GasMeter, _ uint64, _ wasmvmtypes.UFraction) (*wasmvmtypes.QueryResult, uint64, error) {
resp, err := json.Marshal(types.CheckForMisbehaviourResult{FoundMisbehaviour: false})
suite.Require().NoError(err)
return &wasmvmtypes.QueryResult{Ok: resp}, wasmtesting.DefaultGasUsed, nil
})
},
false,
nil,
},
{
"success: no misbehaviour",
func() {
Expand Down

0 comments on commit 211c37a

Please sign in to comment.