Skip to content

Commit

Permalink
add failed status to Stringer interface impl for eventstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Mar 28, 2023
1 parent 02a582e commit 118fb16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relayer/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 5 additions & 0 deletions packages/relayer/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ func Test_EventStatus_String(t *testing.T) {
EventStatusRetriable,
"retriable",
},
{
"failed",
EventStatusFailed,
"failed",
},
{
"done",
EventStatusDone,
Expand Down

0 comments on commit 118fb16

Please sign in to comment.