Repository navigation
fix(credits): use shared tax code helper in custom currency test - #5364
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Update tax code provisioning call test/credits/customcurrency_test.go |
The test now calls TaxCodeEnv.ProvisionDefaultTaxCodes with the test instance and namespace. |
Priority:
Estimated code review effort: 1 (Trivial) | ~2 minutes
Change: Other
Possibly related PRs
- openmeterio/openmeter#5354: Removes
BaseSuite.ProvisionDefaultTaxCodesand introducesTaxCodeEnv.ProvisionDefaultTaxCodes; this change updates the remaining test call.
Suggested reviewers: galexihu
Merge Risk: 
Minimal · up to 1fdc6
-
No actionable merge-blocking risk remains; the change is limited to test setup.
Pre-merge checks: 
4
-
Full details: Title check
-
Explanation
The title names the main change: the custom currency test now calls the shared tax code helper, which matches the raw summary and PR objectives. The fix(credits) prefix fits a test-setup change that repairs a compile error from a removed BaseSuite call. The title is 64 characters, which is within a normal length, and it contains no noise or vague terms.
-
Finishing Touches: 💡 1
-
🛠️ Fix failing CI checks: 💡
-
- Commit to this branch
- Create a new PR
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Overview
Fix the credits test compilation error at
test/credits/customcurrency_test.go:763:s.ProvisionDefaultTaxCodes undefined.#5354 (
a55cf5116) removedbilling.BaseSuite.ProvisionDefaultTaxCodesand migrated existing callers to the sharedTaxCodeEnvhelper. Later, #5294 (7b4c2c76c) addedTestFlatFeeCreditThenInvoiceSelectsCreditsAtServiceStartwith a call to the removed method. The combined changes onmaintherefore fail typechecking. A source-based Git bisect identified7b4c2c76cas the first commit containing this stale call after the method was removed.Replace that call with
s.TaxCodeEnv.ProvisionDefaultTaxCodes(s.T(), ns), matching the other tests in the suite.Notes for reviewer
This is a one-line test setup fix with no production behavior changes.
Validation:
git diff --checkpassed.nix develop --impure .#ci -c go test -tags=dynamic -run '^$' ./test/creditspassed (exit 0). This compiles and vets the package and its tests; integration tests were not executed.

Confidence Score: 5/5
This one-line test fix appears safe to merge.Summary
Replaces the removed suite helper with
TaxCodeEnv.ProvisionDefaultTaxCodesin the custom currency test.Reviews (1) · Last reviewed commit: "fix(credits): use shared tax code helper..." · Reviewed by Greptile
Summary by CodeRabbit