Add error info and code test for a recently added error

pull/3251/head
Todd 3 years ago committed by Timothy Messier
parent b9cc441227
commit 1e3b02fbe7
No known key found for this signature in database
GPG Key ID: EFD2F184F7600572

@ -350,6 +350,11 @@ func TestCode_Both_String_Info(t *testing.T) {
c: QueueIsFull,
want: QueueIsFull,
},
{
name: "NotFound",
c: NotFound,
want: NotFound,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {

@ -295,4 +295,8 @@ var errorCodeInfo = map[Code]Info{
Message: "retry limit exceeded",
Kind: State,
},
NotFound: {
Message: "not found",
Kind: State,
},
}

Loading…
Cancel
Save