Skip to content

INatsJsConsumer should return INatsJsMsg, not its concrete implementation #1002

@paagamelo2

Description

@paagamelo2

Observed behavior

As per the title, INatsJsConsumer should return INatsJsMsg when any consumption method is called. Returning the concrete implementation makes it impossible to mock a consumer, in tests.

Expected behavior

See above

Server and client version

Server: N/A
Client: 2.6.10

Host environment

No response

Steps to reproduce

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions