Skip to content

Commit

Permalink
fix public key comparison bugs in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarak Ben Youssef committed May 16, 2023
1 parent c47c321 commit 184a49d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions engine/access/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,15 +562,12 @@ func (suite *Suite) TestGetExecutionResultByBlockID() {
for i, serviceEvent := range executionResult.ServiceEvents {
assert.Equal(suite.T(), serviceEvent.Type.String(), er.ServiceEvents[i].Type)
event := serviceEvent.Event

marshalledEvent, err := json.Marshal(event)
require.NoError(suite.T(), err)

assert.Equal(suite.T(), marshalledEvent, er.ServiceEvents[i].Payload)
}
parsedExecResult, err := convert.MessageToExecutionResult(resp.ExecutionResult)
require.NoError(suite.T(), err)
assert.Equal(suite.T(), parsedExecResult, executionResult)
assert.Equal(suite.T(), parsedExecResult.ID(), executionResult.ID())
}

Expand Down
2 changes: 1 addition & 1 deletion model/encodable/keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func TestEncodableRandomBeaconPrivKeyMsgPack(t *testing.T) {
err = key.UnmarshalMsgpack(b)
require.NoError(t, err)

require.Equal(t, oldPubKey, key.PublicKey)
require.True(t, oldPubKey.Equals(key.PublicKey))
}

func generateRandomSeed(t *testing.T) []byte {
Expand Down

0 comments on commit 184a49d

Please sign in to comment.