Skip to content

Default unlimited JetStreamLimits differ from unlimited struct used in IsUnlimited() #249

Description

@choufraise

What version were you using?

v2.8.1

What environment was the server running in?

N/A

Is this defect reproducible?

Forked the repo and added a simple test in account_claims._test.go verifying the issue. The output from the test:

=== RUN   TestDefaultClaimsShouldBeUnlimited
    account_claims_test.go:1117: expected default limits to be unlimited
    account_claims_test.go:1126: expected default jetstream limits to be unlimited
--- FAIL: TestDefaultClaimsShouldBeUnlimited (0.00s)

Given the capability you are leveraging, describe your expectation?

I would expect the default (unlimited) claims to be consistent with the IsUnlimited() methods.

Given the expectation, what is the defect you are observing?

JetStreamLimits.IsUnlimited() is not returning true for the default JetStreamLimits created when calling NewAccountClaims(). Due to this, OperatorLimits.IsUnlimited() neither return true since it utilizes the o.JetStreamLimits.IsUnlimited() method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSuspected defect such as a bug or regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions