From 118fb160e0f115380372094748f15ca57e4c2d21 Mon Sep 17 00:00:00 2001 From: Jeffery Walsh Date: Tue, 28 Mar 2023 13:32:11 -0700 Subject: [PATCH] add failed status to Stringer interface impl for eventstatus --- packages/relayer/event.go | 2 +- packages/relayer/event_test.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/relayer/event.go b/packages/relayer/event.go index 36b8af666f9..8f6653cd32c 100644 --- a/packages/relayer/event.go +++ b/packages/relayer/event.go @@ -36,7 +36,7 @@ const ( // String returns string representation of an event status for logging func (e EventStatus) String() string { - return [...]string{"new", "retriable", "done", "onlyOwner"}[e] + return [...]string{"new", "retriable", "done", "failed", "onlyOwner"}[e] } func (e EventType) String() string { diff --git a/packages/relayer/event_test.go b/packages/relayer/event_test.go index 564ab671392..e602229288e 100644 --- a/packages/relayer/event_test.go +++ b/packages/relayer/event_test.go @@ -22,6 +22,11 @@ func Test_EventStatus_String(t *testing.T) { EventStatusRetriable, "retriable", }, + { + "failed", + EventStatusFailed, + "failed", + }, { "done", EventStatusDone,