Skip to content

Commit

Permalink
backend: improve integration test for ListMessages()
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Aug 8, 2023
1 parent 0e7c2ec commit 040ab80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/pkg/api/handle_topic_messages_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ func (s *APIIntegrationTestSuite) TestListMessages() {
phaseCount++
case *v1pb.ListMessagesResponse_Progress:
progressCount++

assert.NotEmpty(cm.Progress)
assert.NotEmpty(cm.Progress.GetBytesConsumed())
assert.NotEmpty(cm.Progress.GetMessagesConsumed())
case *v1pb.ListMessagesResponse_Error:
errorCount++
}
Expand Down

0 comments on commit 040ab80

Please sign in to comment.