Add error info and code test for a recently added error
This commit is contained in:
1 parent
b9cc441227
commit
1e3b02fbe7
2 files changed
+9
No files matched your search
@@ -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,
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user