Skip to content

Commit

Permalink
remove empty jsoncdc test. this is not a valid happy case
Browse files Browse the repository at this point in the history
  • Loading branch information
peterargue committed Jun 28, 2023
1 parent 07a9919 commit 6191498
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions engine/common/rpc/convert/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,6 @@ func TestConvertEventWithPayloadConversion(t *testing.T) {
jsonEvent.Payload, err = jsoncdc.Encode(cadenceValue)
require.NoError(t, err)

t.Run("convert empty jsoncdc payload", func(t *testing.T) {
event := unittest.EventFixture(flow.EventAccountCreated, 2, 3, txID, 0)

msg := convert.EventToMessage(event)
convertedEvent, err := convert.MessageToEventFromVersion(msg, execproto.EventEncodingVersion_JSON_CDC_V0)
assert.NoError(t, err)

assert.Equal(t, event, *convertedEvent)
})

t.Run("convert payload from ccf to jsoncdc", func(t *testing.T) {
message := convert.EventToMessage(ccfEvent)
convertedEvent, err := convert.MessageToEventFromVersion(message, execproto.EventEncodingVersion_CCF_V0)
Expand Down

0 comments on commit 6191498

Please sign in to comment.