Skip to content

Commit 644bf0d

Browse files
committed
fix: event error log test
1 parent 3cccaab commit 644bf0d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

universalClient/chains/common/event_processor_test.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -277,24 +277,6 @@ func TestEventProcessorExtractOutboundObservation(t *testing.T) {
277277
assert.Equal(t, "0xabc123", obs.TxHash)
278278
})
279279

280-
t.Run("extracts error_msg from event data", func(t *testing.T) {
281-
eventData := map[string]interface{}{
282-
"error_msg": "transaction reverted",
283-
}
284-
eventDataBytes, _ := json.Marshal(eventData)
285-
286-
event := &store.Event{
287-
EventID: "0xdef456:0",
288-
BlockHeight: 100,
289-
EventData: eventDataBytes,
290-
}
291-
292-
obs, err := processor.extractOutboundObservation(event)
293-
require.NoError(t, err)
294-
require.NotNil(t, obs)
295-
assert.Equal(t, "transaction reverted", obs.ErrorMsg)
296-
})
297-
298280
t.Run("handles base58 tx hash", func(t *testing.T) {
299281
event := &store.Event{
300282
EventID: "2VfUX:0", // Base58 encoded

0 commit comments

Comments
 (0)