Add error info and code test for a recently added error

This commit is contained in:
Todd authored and Timothy Messier committed 2023-05-31 12:18:09 +00:00
1 parent b9cc441227
commit 1e3b02fbe7
2 files changed
+9

No files matched your search

+5
View File
@@ -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) {
+4
View File
@@ -295,4 +295,8 @@ var errorCodeInfo = map[Code]Info{
Message: "retry limit exceeded",
Kind: State,
},
NotFound: {
Message: "not found",
Kind: State,
},
}