Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
prathyushpv committed Jan 9, 2025
1 parent 89828cc commit c3fbe29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/tdbg/dlq_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,14 @@ func TestDLQCommand_V2(t *testing.T) {
p.expectedErrSubstrings = []string{"some error", "GetDLQTasks"}
},
},
{
name: "GetDLQTasks on empty queue",
override: func(p *dlqTestParams) {
p.command = "read"
p.dlqType = "1"
p.adminClient.err = errors.New(" GetDLQTasks failed. Error: queue not found:")
},
},
{
name: "purge invalid last message ID",
override: func(p *dlqTestParams) {
Expand Down

0 comments on commit c3fbe29

Please sign in to comment.