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.
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:
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 returningtruefor the defaultJetStreamLimitscreated when callingNewAccountClaims(). Due to this,OperatorLimits.IsUnlimited()neither returntruesince it utilizes theo.JetStreamLimits.IsUnlimited()method.